Skip to content

Commit f1dcad7

Browse files
authored
Merge pull request #2980 from SeedCompany/refactor/tests
Refactor users tests
2 parents 118fd2b + 68ca6d3 commit f1dcad7

File tree

7 files changed

+112
-202
lines changed

7 files changed

+112
-202
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "eslint --ext .ts,.tsx --fix --max-warnings 0 .",
2727
"test": "yarn test:base --selectProjects Unit",
2828
"test:e2e": "yarn test:base --selectProjects E2E",
29-
"test:base": "node --experimental-vm-modules --inspect $(yarn bin jest)",
29+
"test:base": "NODE_NO_WARNINGS=1 node --experimental-vm-modules --inspect $(yarn bin jest)",
3030
"type-check": "tsc -p tsconfig.check.json"
3131
},
3232
"dependencies": {

test/region.e2e-spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { isValidId } from '../src/common';
33
import { Role } from '../src/components/authorization/dto/role.dto';
44
import { FieldRegion } from '../src/components/field-region';
55
import { FieldZone } from '../src/components/field-zone';
6-
import { User } from '../src/components/user';
76
import {
87
createPerson,
98
createSession,
@@ -15,11 +14,12 @@ import {
1514
} from './utility';
1615
import { createRegion } from './utility/create-region';
1716
import { createZone } from './utility/create-zone';
17+
import { RawUser } from './utility/fragments';
1818

1919
describe('Region e2e', () => {
2020
let app: TestApp;
21-
let director: User;
22-
let newDirector: User;
21+
let director: RawUser;
22+
let newDirector: RawUser;
2323
let fieldZone: FieldZone;
2424

2525
beforeAll(async () => {

0 commit comments

Comments
 (0)