Skip to content

Commit d1e73fe

Browse files
Fix test
1 parent 4ff5749 commit d1e73fe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ 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: [],
30-
compiler: { name: 'in-memory', version: '0.0.0-dev.20210827160156' },
34+
compiler: { name: 'in-memory' },
3135
componentGraph: {},
3236
components: [],
3337
entries: [],

0 commit comments

Comments
 (0)