Skip to content

Commit

Permalink
Avoid default export
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Dec 22, 2024
1 parent 8a7947c commit e702a07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions js/src/jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
3 changes: 2 additions & 1 deletion js/src/tests/jest.test.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit e702a07

Please sign in to comment.