Skip to content

Commit dba90cc

Browse files
committed
Fix module linting errors
1 parent 3f1c6aa commit dba90cc

File tree

10 files changed

+44
-88
lines changed

10 files changed

+44
-88
lines changed
Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
import type { Config } from "jest";
22

33
const config: Config = {
4-
preset: "ts-jest",
5-
moduleNameMapper: {
6-
"\\.(css|scss)$": "identity-obj-proxy",
7-
"^.+\\.svg": "<rootDir>/tests/mocks/svgMock.tsx",
8-
},
9-
// to obtain access to the matchers.
10-
setupFilesAfterEnv: ["<rootDir>/tests/setupTests.ts"],
11-
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
12-
modulePaths: ["<rootDir>"],
13-
testEnvironment: "jsdom",
14-
transform: {
15-
"^.+\\.(ts|tsx)$": [
16-
"ts-jest",
17-
{
18-
tsconfig: "tsconfig.test.json",
19-
},
20-
],
21-
"^.+\\.(js|jsx)$": "babel-jest",
22-
},
4+
preset: "ts-jest",
5+
moduleNameMapper: { "\\.(css|scss)$": "identity-obj-proxy" },
6+
// to obtain access to the matchers.
7+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
8+
modulePaths: ["<rootDir>"],
9+
testEnvironment: "jsdom",
10+
transform: {
11+
"^.+\\.(ts|tsx)$": [
12+
"ts-jest",
13+
{
14+
tsconfig: "tsconfig.test.json",
15+
},
16+
],
17+
"^.+\\.(js|jsx)$": "babel-jest",
18+
},
2319
};
2420

2521
export default config;

course-matrix/backend/tests/mocks/svgMock.tsx

Lines changed: 0 additions & 2 deletions
This file was deleted.

course-matrix/backend/tests/setupTests.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

course-matrix/backend/tsconfig.app.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

course-matrix/backend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
},
1010
"include": ["src/**/*"],
1111
"exclude": ["node_modules", "tests"]
12-
}
12+
}
Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
import type { Config } from "jest";
22

33
const config: Config = {
4-
preset: "ts-jest",
5-
moduleNameMapper: {
6-
"\\.(css|scss)$": "identity-obj-proxy",
7-
"^.+\\.svg": "<rootDir>/tests/mocks/svgMock.tsx",
8-
},
9-
// to obtain access to the matchers.
10-
setupFilesAfterEnv: ["<rootDir>/tests/setupTests.ts"],
11-
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
12-
modulePaths: ["<rootDir>"],
13-
testEnvironment: "jsdom",
14-
transform: {
15-
"^.+\\.(ts|tsx)$": [
16-
"ts-jest",
17-
{
18-
tsconfig: "tsconfig.test.json",
19-
},
20-
],
21-
"^.+\\.(js|jsx)$": "babel-jest",
22-
},
4+
preset: "ts-jest",
5+
moduleNameMapper: { "\\.(css|scss)$": "identity-obj-proxy" },
6+
// to obtain access to the matchers.
7+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
8+
modulePaths: ["<rootDir>"],
9+
testEnvironment: "jsdom",
10+
transform: {
11+
"^.+\\.(ts|tsx)$": [
12+
"ts-jest",
13+
{
14+
tsconfig: "tsconfig.test.json",
15+
},
16+
],
17+
"^.+\\.(js|jsx)$": "babel-jest",
18+
},
2319
};
2420

2521
export default config;

course-matrix/frontend/tests/mocks/svgMock.tsx

Lines changed: 0 additions & 2 deletions
This file was deleted.

course-matrix/frontend/tests/setupTests.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

course-matrix/frontend/tsconfig.app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
"@/*": ["./src/*"]
2828
}
2929
},
30-
"include": ["src", "tests/setupTests.ts"]
31-
}
30+
"include": ["src"]
31+
}
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6",
4-
"module": "commonjs",
5-
"outDir": "./build",
6-
"strict": true,
7-
"esModuleInterop": true,
8-
"skipLibCheck": true
9-
},
10-
"include": ["src/**/*"],
11-
"exclude": ["node_modules", "tests"]
2+
"files": [],
3+
"references": [
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
6+
],
7+
"compilerOptions": {
8+
"baseUrl": ".",
9+
"paths": {
10+
"@/*": ["./src/*"]
11+
}
12+
}
1213
}

0 commit comments

Comments
 (0)