Skip to content

Commit

Permalink
Bring back jest files
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Sep 14, 2023
1 parent e584d54 commit d649726
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/upscalerjs/jestconfig.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testEnvironment": "node",
"setupFiles": ["jest-canvas-mock"],
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"node_modules",
".generated.ts",
".node.ts"
],
"modulePathIgnorePatterns": ["image.browser.test.ts", "node.test.ts"],
"testRegex": "test\\.ts$",
"moduleFileExtensions": ["js", "ts"]
}
15 changes: 15 additions & 0 deletions packages/upscalerjs/jestconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"node_modules",
".generated.ts",
".browser.ts"
],
"modulePathIgnorePatterns": ["browser.test.ts"],
"testRegex": "test\\.ts$",
"moduleFileExtensions": ["js", "ts"]
}

0 comments on commit d649726

Please sign in to comment.