diff --git a/test/fixtures/worker-script.ts b/test/fixtures/worker-script.ts new file mode 100644 index 00000000000..e69de29bb2d diff --git a/test/parallel/test-worker-load-file-with-extension-other-than-js.js b/test/parallel/test-worker-load-file-with-extension-other-than-js.js new file mode 100644 index 00000000000..5dca297576b --- /dev/null +++ b/test/parallel/test-worker-load-file-with-extension-other-than-js.js @@ -0,0 +1,9 @@ +'use strict'; +const common = require('../common'); +const fixtures = require('../common/fixtures'); + +const { Worker } = require('worker_threads'); + +(common.mustCall(() => { + new Worker(fixtures.path('worker-script.ts')); +}))();