Skip to content

Commit e75ae58

Browse files
committed
chore: fix for 'npm run test'
1 parent b7226a2 commit e75ae58

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ jobs:
2929
run: npm run lint
3030
- name: Typecheck
3131
run: npm run typecheck
32+
- name: Unit
33+
run: npm run test

jest.config.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,13 @@ const config: Config = {
155155
// testLocationInResults: false,
156156

157157
// The glob patterns Jest uses to detect test files
158-
// testMatch: [
159-
// "**/__tests__/**/*.[jt]s?(x)",
160-
// "**/?(*.)+(spec|test).[tj]s?(x)"
161-
// ],
158+
testMatch: [
159+
// "**/__tests__/**/*.[jt]s?(x)",
160+
'**/?(*.)+(spec|test).[tj]s?(x)',
161+
],
162162

163163
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
164-
// testPathIgnorePatterns: [
165-
// "/node_modules/"
166-
// ],
164+
testPathIgnorePatterns: ['.*/__tests__/.*'],
167165

168166
// The regexp pattern or array of patterns that Jest uses to detect test files
169167
// testRegex: [],

0 commit comments

Comments
 (0)