File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
packages/web-integration/tests/unit-test Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ exports[`TaskCache > save and retrieve cache from file 2`] = `
37
37
` ;
38
38
39
39
exports [` TaskCache > save and retrieve cache from file 3` ] = `
40
- "midsceneVersion: 0.26.2
40
+ "midsceneVersion: < VERSION >
41
41
cacheId: cacheId
42
42
caches:
43
43
- type: plan
@@ -52,7 +52,7 @@ caches:
52
52
`;
53
53
54
54
exports[`TaskCache > should create cache file 1`] = `
55
- "midsceneVersion: 0.26.2
55
+ "midsceneVersion: < VERSION >
56
56
cacheId: cacheId
57
57
caches:
58
58
- type: plan
Original file line number Diff line number Diff line change @@ -55,10 +55,9 @@ describe(
55
55
} ) ;
56
56
57
57
expect ( existsSync ( cache . cacheFilePath ! ) ) . toBe ( true ) ;
58
- const cacheContent = readFileSync ( cache . cacheFilePath ! , 'utf-8' ) . replace (
59
- cacheId ,
60
- 'cacheId' ,
61
- ) ;
58
+ const cacheContent = readFileSync ( cache . cacheFilePath ! , 'utf-8' )
59
+ . replace ( cacheId , 'cacheId' )
60
+ . replace ( / m i d s c e n e V e r s i o n : .+ / , 'midsceneVersion: <VERSION>' ) ;
62
61
expect ( cacheContent ) . toMatchSnapshot ( ) ;
63
62
64
63
expect ( cache . isCacheResultUsed ) . toBe ( true ) ;
@@ -226,7 +225,9 @@ describe(
226
225
const cacheFileContent = readFileSync (
227
226
newTaskCache . cacheFilePath ! ,
228
227
'utf-8' ,
229
- ) . replace ( newTaskCache . cacheId , 'cacheId' ) ;
228
+ )
229
+ . replace ( newTaskCache . cacheId , 'cacheId' )
230
+ . replace ( / m i d s c e n e V e r s i o n : .+ / , 'midsceneVersion: <VERSION>' ) ;
230
231
expect ( cacheFileContent ) . toMatchSnapshot ( ) ;
231
232
} ) ;
232
233
You can’t perform that action at this time.
0 commit comments