Skip to content

Commit 19ad0e1

Browse files
committed
Add cache reuse assertion to pnpm 11 test
Assert that pnpm reports reused packages on rebuild to verify the store-dir cache is actually being used.
1 parent 9cc0e40 commit 19ad0e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spec/ci/pnpm_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127

128128
expect(app.output).to include("Restoring cache")
129129
expect(app.output).to include("Running 'pnpm install' with pnpm-lock.yaml")
130+
expect(app.output).to match(/reused \d*[1-9]\d*/)
130131
expect(app.output).to include("Pruning devDependencies")
131132
expect(successful_body(app).strip).to eq("Hello from pnpm 11")
132133
end

0 commit comments

Comments
 (0)