aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/disabled-module.test.cjs
blob: bc4817b8dae42b202322c7b17a4a9e218ca2df0e (plain) (blame)
1
2
3
4
5
6
test("not implemented yet module masquerades as undefined in cjs and throws an error", () => {
  const worker_threads = require("worker_threads");

  expect(typeof worker_threads).toBe("undefined");
  expect(typeof worker_threads.getEnvironmentData).toBe("undefined");
});