Skip to content

Commit

Permalink
feat(fixture): Allow cjs/mjs and cts/mts
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee committed Jun 8, 2024
1 parent c2ae9e2 commit 12d4af4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
},
"include": [
"./compiler/**/*.js",
"./compiler/**/*.jsx",
"./compiler/**/*.mjs",
"./compiler/**/*.cjs",
"./compiler/**/*.ts",
"./compiler/**/*.mts",
"./compiler/**/*.cts",
"./compiler/**/*.jsx",
"./compiler/**/*.tsx"
]
}
2 changes: 1 addition & 1 deletion compiler/packages/snap/src/fixture-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as glob from "glob";
import path from "path";
import { FILTER_PATH, FIXTURES_PATH, SNAPSHOT_EXTENSION } from "./constants";

const INPUT_EXTENSIONS = [".js", ".ts", ".jsx", ".tsx"];
const INPUT_EXTENSIONS = [".js", ".cjs", ".mjs", ".ts", ".cts", ".mts", ".jsx", ".tsx"];

export type TestFilter = {
debug: boolean;
Expand Down

0 comments on commit 12d4af4

Please sign in to comment.