Skip to content

Commit 640c84b

Browse files
authored
test: reference jest directly since tests fail occasionally (#505)
1 parent c097271 commit 640c84b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build:schematics": "tsc -p projects/spectator/schematics/tsconfig.json",
1818
"test": "ng test",
1919
"test:jest": "ng run spectator:test-jest",
20-
"test:ci": "cross-env NODE_ENV=build yarn test && yarn test:jest",
20+
"test:ci": "cross-env NODE_ENV=build yarn test && yarn test:jest --silent",
2121
"lint": "ng lint",
2222
"format": "prettier --write \"{projects,src}/**/*.ts\"",
2323
"commit": "git-cz",

projects/spectator/jest/src/lib/mock.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference types="jest" />
2+
13
import { FactoryProvider, AbstractType, Type } from '@angular/core';
24
import { installProtoMethods, CompatibleSpy, SpyObject as BaseSpyObject } from '@ngneat/spectator';
35

projects/spectator/test/spectator-routing/activated-route-stub.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ describe('ActivatedRouteStub', () => {
158158
type: 'dog'
159159
}
160160
});
161-
console.error(data);
162161
})
163162

164163
it('should update fragment in snapshot when set', () => {

0 commit comments

Comments
 (0)