Format all code with prettier (#197)

* Add formatter support

* Format all code

* Fix moved @ts-expect-error
This commit is contained in:
Chenlei Hu
2024-10-07 14:06:44 -04:00
committed by GitHub
parent 8418c884c0
commit 28382b7e45
25 changed files with 16345 additions and 14414 deletions

View File

@@ -1,23 +1,23 @@
import type { JestConfigWithTsJest } from 'ts-jest'
import type { JestConfigWithTsJest } from "ts-jest";
const jestConfig: JestConfigWithTsJest = {
testMatch: ['**/test/**/*.test.ts'],
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'jsx', 'json', 'ts'],
testMatch: ["**/test/**/*.test.ts"],
testEnvironment: "jsdom",
moduleFileExtensions: ["js", "jsx", "json", "ts"],
transform: {
'^.+\\.m?[tj]sx?$': [
'ts-jest',
"^.+\\.m?[tj]sx?$": [
"ts-jest",
{
tsconfig: './tsconfig.json',
}
]
tsconfig: "./tsconfig.json",
},
],
},
clearMocks: true,
resetModules: true,
testTimeout: 10000,
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
"^@/(.*)$": "<rootDir>/src/$1",
},
}
};
export default jestConfig
export default jestConfig;