diff --git a/packages/api/jest.config.js b/packages/api/jest.config.js index 0aa3aaa4..f4c0ce04 100644 --- a/packages/api/jest.config.js +++ b/packages/api/jest.config.js @@ -1,18 +1,18 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - preset: "ts-jest", - testEnvironment: "node", - transform: { - "^.+\\.tsx?$": [ - "ts-jest", - { - babelConfig: false, - tsconfig: "tsconfig.json", - }, - ], - }, - transformIgnorePatterns: [`/node_modules/*`], - testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - modulePathIgnorePatterns: ["dist/*"] + preset: 'ts-jest', + testEnvironment: 'node', + transform: { + '^.+\\.tsx?$': [ + 'ts-jest', + { + babelConfig: false, + tsconfig: 'tsconfig.json', + }, + ], + }, + transformIgnorePatterns: [`/node_modules/*`], + testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + modulePathIgnorePatterns: ['dist/*'], }; diff --git a/packages/api/package.json b/packages/api/package.json index 450b50c7..f3740b59 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -24,7 +24,7 @@ "prepare": "npm run build", "codegen": "ts-node scripts/codegen.ts", "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", - "lint": "eslint . --fix", + "lint": "eslint --ext js,ts,tsx .", "test": "jest", "test:watch": "jest --watch" },