Skip to content

Commit

Permalink
Mocha in commonjs with ts - working example - changed file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
sahin52 committed Jul 8, 2024
1 parent 6b98418 commit ced4f98
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/typescript-ts-node-esm-loader/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extension": ["ts"],
"spec": "src/**/*.spec.ts"
"spec": "src/**/*.spec.mts"
}
3 changes: 1 addition & 2 deletions packages/typescript-ts-node-esm-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
"engines": {
"node": ">=10.0.0"
},
"license": "MIT",
"type": "module"
"license": "MIT"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { equal } from "assert";
import index from "./index.js";
import index from "./index.mjs";

describe("TypeScript usage suite", () => {
it("should be able to execute a test", () => {
Expand Down

0 comments on commit ced4f98

Please sign in to comment.