Skip to content

Commit 1b24faa

Browse files
committed
skip test on node < 14
1 parent f8f7bb6 commit 1b24faa

File tree

1 file changed

+6
-0
lines changed
  • packages/node/test/manual/fastify-scope-separation

1 file changed

+6
-0
lines changed

packages/node/test/manual/fastify-scope-separation/start.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
if (parseInt(process.env.NODE_MAJOR) < 14) {
2+
console.log(colorize('SKIPPED: Fastify tests are skipped in Node < 14\n', 'yellow'));
3+
app.close();
4+
process.exit(0);
5+
}
6+
17
const http = require('http');
28
const fastify = require('fastify');
39
const app = fastify();

0 commit comments

Comments
 (0)