Skip to content

Commit ff607c0

Browse files
Fix test
1 parent 4ff5749 commit ff607c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/build/test/build-stats.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ describe('generateBuildStats', () => {
1818
it('should return a structured json object', async () => {
1919
buildCtx.buildResults = generateBuildResults(config, compilerCtx, buildCtx);
2020

21-
const result = generateBuildStats(config, buildCtx);
21+
const result: d.CompilerBuildStats = generateBuildStats(config, buildCtx);
2222

2323
if (result.hasOwnProperty('timestamp')) {
2424
delete result.timestamp;
2525
}
2626

27+
if (result.hasOwnProperty('compiler') && result.compiler.hasOwnProperty('version')) {
28+
delete result.compiler.version;
29+
}
30+
2731
expect(result).toStrictEqual({
2832
app: { bundles: 0, components: 0, entries: 0, fsNamespace: undefined, namespace: 'Testing', outputs: [] },
2933
collections: [],

0 commit comments

Comments
 (0)