Skip to content

Commit f967295

Browse files
committed
feat: refactor test
1 parent a007211 commit f967295

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/__tests__/utils.spec.ts renamed to __tests__/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// import {describe, expect, test} from '@jest/globals';
22

3-
import { checkPasswordComplexity } from "../utils";
3+
import { checkPasswordComplexity } from "../src/utils";
44

55
describe('test score', () => {
66
test('abcdefgh is tooWeak', () => {

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default tseslint.config(
172172
],
173173
},
174174
{
175-
files: ["src/__tests__/**/*"],
175+
files: ["__tests__/**/*"],
176176
...jest.configs['flat/recommended'],
177177
rules: {
178178
...jest.configs['flat/recommended'].rules,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"allowJs": false,
2222
"noFallthroughCasesInSwitch": true
2323
},
24-
"include": ["./src", "vite.config.ts", "dts-bundle-generator.config.ts", "src/__tests__/**/*.ts"]
24+
"include": ["./src", "vite.config.ts", "dts-bundle-generator.config.ts", "./__tests__/**/*.ts"]
2525
}

0 commit comments

Comments
 (0)