diff --git a/js/src/jest/index.ts b/js/src/jest/index.ts index 26ef76d52..1ef8c48aa 100644 --- a/js/src/jest/index.ts +++ b/js/src/jest/index.ts @@ -339,11 +339,11 @@ const lsTest = Object.assign(wrapTestMethod(test), { each: eachMethod, }); -export default { - test: lsTest, - it: lsTest, - describe: lsDescribe, - expect: expectWithGradedBy, +export { + lsTest as test, + lsTest as it, + lsDescribe as describe, + expectWithGradedBy as expect, }; export { type SimpleEvaluator }; diff --git a/js/src/tests/jest.test.ts b/js/src/tests/jest.test.ts index fe95af23b..9d558083c 100644 --- a/js/src/tests/jest.test.ts +++ b/js/src/tests/jest.test.ts @@ -1,5 +1,6 @@ import { AsyncLocalStorage } from "node:async_hooks"; -import ls, { type SimpleEvaluator } from "../jest/index.js"; +import * as ls from "../jest/index.js"; +import { type SimpleEvaluator } from "../jest/index.js"; const myEvaluator: SimpleEvaluator = ({ expected, actual }) => { if (actual.bar === expected.bar) {