Skip to content

Commit 609349c

Browse files
committed
update jest config to cjs, fix typing error
1 parent 6bb9524 commit 609349c

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ src/ui/next-env.d.ts
224224
!tsconfig.*.json
225225
!src/ui/lib
226226
!src/ui/public/manifest.json
227-
.eslintcache
227+
.eslintcache
File renamed without changes.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"type-check": "tsc -p src/ui/tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.cypress.json --noEmit",
1010
"format": "prettier --write .",
1111
"prepare": "husky",
12-
"test": "jest --config jest.config.js tests/ui",
12+
"test": "jest --config jest.config.cjs tests/ui",
1313
"test:watch": "jest --watch tests/ui",
14-
"test:unit": "jest --config jest.config.js tests/ui/unit",
15-
"test:integration": "jest --config jest.config.js tests/ui/integration",
14+
"test:unit": "jest --config jest.config.cjs tests/ui/unit",
15+
"test:integration": "jest --config jest.config.cjs tests/ui/integration",
1616
"test:e2e": "cypress run --headless",
17-
"coverage": "jest --config jest.config.js --coverage tests/ui",
17+
"coverage": "jest --config jest.config.cjs --coverage tests/ui",
1818
"coverage:badge": "jest-coverage-badges --input coverage/coverage-summary.json --output coverage/.coverage"
1919
},
2020
"dependencies": {

src/ui/app/types/index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
import type { StaticImageData } from 'next/image';
21
declare module '*.ttf';
32

43
declare module '*.otf';
5-
6-
declare module '*.png' {
7-
const content: StaticImageData;
8-
export default content;
9-
}

src/ui/app/types/png.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { StaticImageData } from 'next/image';
2+
3+
declare module '*.png' {
4+
const content: StaticImageData;
5+
export default content;
6+
}

0 commit comments

Comments
 (0)