We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-zoneless
fixture.whenStable
1 parent 9dab578 commit 0b55ebbCopy full SHA for 0b55ebb
tests/legacy-cli/e2e/tests/jest/no-zoneless.ts
@@ -1,3 +1,4 @@
1
+import { replaceInFile } from '../../utils/fs';
2
import { applyJestBuilder } from '../../utils/jest';
3
import { installPackage, uninstallPackage } from '../../utils/packages';
4
import { ng } from '../../utils/process';
@@ -8,8 +9,15 @@ export default async function (): Promise<void> {
8
9
polyfills: ['zone.js', 'zone.js/testing'],
10
});
11
12
+ await replaceInFile(
13
+ 'src/app/app.spec.ts',
14
+ 'await fixture.whenStable();',
15
+ 'fixture.detectChanges();',
16
+ );
17
+
18
try {
19
await installPackage('zone.js');
20
21
const { stderr } = await ng('test');
22
23
if (!stderr.includes('Jest builder is currently EXPERIMENTAL')) {
0 commit comments