Skip to content

Commit ac1cf46

Browse files
committed
test: verify cache miss after source file change in pack monorepo
1 parent 4902ed2 commit ac1cf46

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/cli/snap-tests/command-pack-monorepo/snap.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ index.cjs
66
~/packages/hello$ vp pack ◉ cache hit, replaying
77
vp run: cache hit, <variable>ms saved.
88

9+
> echo 'export function hello() { console.log("changed"); }' > packages/hello/src/hello.ts
10+
> vp run hello#build 2>&1 | grep 'cache miss' # should miss cache after source change
11+
~/packages/hello$ vp pack ○ cache miss: 'packages/hello/src/hello.ts' modified, executing
12+
913
> vp run array-config#build # should build the library supports array config
1014
> ls packages/array-config/dist # should have the library
1115
index.d.mts

packages/cli/snap-tests/command-pack-monorepo/steps.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
},
88
"ls packages/hello/dist # should have the library",
99
"vp run hello#build 2>&1 | grep 'cache hit' # should hit cache",
10+
"echo 'export function hello() { console.log(\"changed\"); }' > packages/hello/src/hello.ts",
11+
"vp run hello#build 2>&1 | grep 'cache miss' # should miss cache after source change",
1012
{
1113
"command": "vp run array-config#build # should build the library supports array config",
1214
"ignoreOutput": true

0 commit comments

Comments
 (0)