Skip to content

Commit 4f891b9

Browse files
committed
chore: fix core tests (#24825)
In the build pipeline the version in `package.json` is updated causing some tests to fail that are expecting a the `0.0.0` version. I've refactored the tests to accommodate. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 5d623df commit 4f891b9

File tree

2 files changed

+179
-293
lines changed

2 files changed

+179
-293
lines changed

packages/@aws-cdk/core/test/validation/trace.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('ReportTrace', () => {
3131
expect(formatted).toEqual({
3232
id: 'MyStack',
3333
construct: expect.stringMatching(/.*Stack/),
34-
libraryVersion: '0.0.0',
34+
libraryVersion: expect.any(String),
3535
location: expect.stringMatching(/Object.<anonymous> \(.*\/trace.test.ts:[0-9]+:[0-9]+\)/),
3636
path: 'MyStack',
3737
child: {
@@ -64,7 +64,7 @@ describe('ReportTrace', () => {
6464
expect(formatted).toEqual({
6565
id: 'MyStack',
6666
construct: expect.stringMatching(/.*Stack/),
67-
libraryVersion: '0.0.0',
67+
libraryVersion: expect.any(String),
6868
location: "Run with '--debug' to include location info",
6969
path: 'MyStack',
7070
child: {

0 commit comments

Comments
 (0)