Skip to content

Commit 387aa19

Browse files
committed
optim(ci): Optimize test structure
1 parent 8800863 commit 387aa19

File tree

6 files changed

+5
-22
lines changed

6 files changed

+5
-22
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "jest",
1414
"test:watch": "jest --watch",
1515
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
16-
"test:e2e": "jest --config jest-e2e.json --runInBand"
16+
"test:e2e": "jest --config test/jest-e2e.json --runInBand"
1717
},
1818
"devDependencies": {
1919
"@eslint/eslintrc": "^3.3.1",

tests/user.e2e-spec.ts renamed to src/auth/auth.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestClient } from 'tests/test-client';
1+
import { TestClient } from 'test/test-client';
22

33
describe('UserController (e2e)', () => {
44
let client: TestClient;

tests/resources.e2e-spec.ts renamed to src/resources/resources.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
33
import * as os from 'os';
4-
import { TestClient } from 'tests/test-client';
4+
import { TestClient } from 'test/test-client';
55

66
describe('ResourcesController (e2e)', () => {
77
let client: TestClient;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"moduleFileExtensions": ["js", "json", "ts"],
3-
"rootDir": ".",
3+
"rootDir": "..",
44
"testEnvironment": "node",
55
"testRegex": ".e2e-spec.ts$",
66
"transform": {
@@ -9,6 +9,6 @@
99
"setupFilesAfterEnv": ["<rootDir>/jest.setup.ts"],
1010
"moduleNameMapper": {
1111
"^omniboxd/(.*)$": "<rootDir>/src/$1",
12-
"^tests/(.*)$": "<rootDir>/tests/$1"
12+
"^test/(.*)$": "<rootDir>/test/$1"
1313
}
1414
}
File renamed without changes.

tests/health.e2e-spec.ts

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

0 commit comments

Comments
 (0)