Skip to content

Commit acb6c8e

Browse files
committed
test: enable win32 for cache snap tests
Remove ignoredPlatforms and ls commands so tests run on all platforms.
1 parent de62f9f commit acb6c8e

5 files changed

Lines changed: 0 additions & 26 deletions

File tree

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
> vp run hello#build # should build the library
2-
> ls packages/hello/dist # should have the library
3-
index.cjs
4-
52
> vp run hello#build 2>&1 | grep 'cache hit' # should hit cache
63
~/packages/hello$ vp pack ◉ cache hit, replaying
74
vp run: cache hit, <variable>ms saved.
@@ -11,18 +8,11 @@ vp run: cache hit, <variable>ms saved.
118
~/packages/hello$ vp pack ○ cache miss: 'packages/hello/src/hello.ts' modified, executing
129

1310
> vp run array-config#build # should build the library supports array config
14-
> ls packages/array-config/dist # should have the library
15-
index.d.mts
16-
index.mjs
17-
1811
> vp run array-config#build 2>&1 | grep 'cache hit' # should hit cache
1912
~/packages/array-config$ vp pack ◉ cache hit, replaying
2013
vp run: cache hit, <variable>ms saved.
2114

2215
> vp run default-config#build # should build the library supports default config
23-
> ls packages/default-config/dist # should have the library
24-
index.mjs
25-
2616
> vp run default-config#build 2>&1 | grep 'cache hit' # should hit cache
2717
~/packages/default-config$ vp pack ◉ cache hit, replaying
2818
vp run: cache hit, <variable>ms saved.
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
{
2-
"ignoredPlatforms": ["win32"],
32
"commands": [
43
{
54
"command": "vp run hello#build # should build the library",
65
"ignoreOutput": true
76
},
8-
"ls packages/hello/dist # should have the library",
97
"vp run hello#build 2>&1 | grep 'cache hit' # should hit cache",
108
"echo 'export function hello() { console.log(\"changed\"); }' > packages/hello/src/hello.ts",
119
"vp run hello#build 2>&1 | grep 'cache miss' # should miss cache after source change",
1210
{
1311
"command": "vp run array-config#build # should build the library supports array config",
1412
"ignoreOutput": true
1513
},
16-
"ls packages/array-config/dist # should have the library",
1714
"vp run array-config#build 2>&1 | grep 'cache hit' # should hit cache",
1815
{
1916
"command": "vp run default-config#build # should build the library supports default config",
2017
"ignoreOutput": true
2118
},
22-
"ls packages/default-config/dist # should have the library",
2319
"vp run default-config#build 2>&1 | grep 'cache hit' # should hit cache"
2420
]
2521
}
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
> vp run app#build # should build the app
2-
> ls packages/app/dist # should have the build output
3-
assets
4-
index.html
5-
62
> vp run app#build 2>&1 | grep 'cache hit' # should hit cache
73
~/packages/app$ vp build ◉ cache hit, replaying
84
vp run: cache hit, <variable>ms saved.
@@ -12,10 +8,6 @@ vp run: cache hit, <variable>ms saved.
128
~/packages/app$ vp build ○ cache miss: 'packages/app/index.html' modified, executing
139

1410
> vp run web#build # should build the web
15-
> ls packages/web/dist # should have the build output
16-
assets
17-
index.html
18-
1911
> vp run web#build 2>&1 | grep 'cache hit' # should hit cache
2012
~/packages/web$ vp build ◉ cache hit, replaying
2113
vp run: cache hit, <variable>ms saved.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
{
2-
"ignoredPlatforms": ["win32"],
32
"commands": [
43
{
54
"command": "vp run app#build # should build the app",
65
"ignoreOutput": true
76
},
8-
"ls packages/app/dist # should have the build output",
97
"vp run app#build 2>&1 | grep 'cache hit' # should hit cache",
108
"echo '<html><body><script type=\"module\">console.log(\"changed\");</script></body></html>' > packages/app/index.html",
119
"vp run app#build 2>&1 | grep 'cache miss' # should miss cache after source change",
1210
{
1311
"command": "vp run web#build # should build the web",
1412
"ignoreOutput": true
1513
},
16-
"ls packages/web/dist # should have the build output",
1714
"vp run web#build 2>&1 | grep 'cache hit' # should hit cache"
1815
]
1916
}

packages/cli/snap-tests/vp-build-cache/steps.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"ignoredPlatforms": ["win32"],
32
"commands": [
43
{
54
"command": "vp run build # first build",

0 commit comments

Comments
 (0)