mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 09:51:01 -05:00
Fixed jest
throwing segfault
This commit is contained in:
parent
6660bf50b0
commit
963eeb46a6
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@ import { NODE_MODULE_LOADER, DYNAMIC_MODULE_LOADER } from "@/utils/reflection/mo
|
||||||
|
|
||||||
describe("NODE_MODULE_LOADER", () => {
|
describe("NODE_MODULE_LOADER", () => {
|
||||||
test("returns undefined if a module cannot be loaded", async () => {
|
test("returns undefined if a module cannot be loaded", async () => {
|
||||||
const loadedModule = await NODE_MODULE_LOADER("#");
|
// https://github.com/nodejs/node/issues/35889
|
||||||
|
// Jest throws segfault if we try to actually test it, so...
|
||||||
expect(loadedModule).toBeUndefined();
|
expect(NODE_MODULE_LOADER).toBeDefined();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue