Skip to content

Commit

Permalink
test: fix flaky profile flag test large
Browse files Browse the repository at this point in the history
This change addresses the flaky profile flag test large that sometimes caused `RangeError Maximum call stack size exceeded` inside regex
  • Loading branch information
Alan Agius authored and alexeagle committed Apr 12, 2019
1 parent 92913e4 commit 8432650
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Browser Builder stats json', () => {
it('works with profile flag', async () => {
const { files } = await browserBuild(architect, host, target, { statsJson: true });
expect('stats.json' in files).toBe(true);
const stats = await files['stats.json'];
expect(stats).toMatch(/profile.+building/);
const stats = JSON.parse(await files['stats.json']);
expect(stats.chunks[0].modules[0].profile.building).toBeDefined();
});
});

0 comments on commit 8432650

Please sign in to comment.