Skip to content

Commit

Permalink
test: add test to verify other extension can be loaded by worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayase-252 committed Aug 24, 2021
1 parent 9076f35 commit 1c6cd1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Empty file added test/fixtures/worker-script.ts
Empty file.
Original file line number Diff line number Diff line change
@@ -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'));
}))();

0 comments on commit 1c6cd1c

Please sign in to comment.