Fix tests

This commit is contained in:
Reinier Criel 2026-05-13 20:28:58 -07:00
parent 6cdad3df98
commit e0e06431d1
9 changed files with 13 additions and 13 deletions

View file

@ -48,7 +48,7 @@ describe("E2E: bun coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(
@ -68,7 +68,7 @@ describe("E2E: bun coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(

View file

@ -72,7 +72,7 @@ describe("E2E: npm coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(

View file

@ -133,7 +133,7 @@ describe("E2E: pip coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads:/, /blocked [1-9]\d* malicious package downloads:/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(

View file

@ -72,7 +72,7 @@ describe("E2E: pnpm coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(

View file

@ -109,7 +109,7 @@ describe("E2E: rush coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(

View file

@ -57,7 +57,7 @@ describe("E2E: rushx coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(

View file

@ -102,7 +102,7 @@ describe("E2E: safe-chain CLI python/pip support", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Should have blocked malware. Output was:\n${result.output}` `Should have blocked malware. Output was:\n${result.output}`
); );
}); });

View file

@ -131,7 +131,7 @@ describe("E2E: uv coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads:/, /blocked [1-9]\d* malicious package downloads:/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(
@ -419,7 +419,7 @@ describe("E2E: uv coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads:/, /blocked [1-9]\d* malicious package downloads:/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(
@ -451,7 +451,7 @@ describe("E2E: uv coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads:/, /blocked [1-9]\d* malicious package downloads:/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(
@ -490,7 +490,7 @@ describe("E2E: uv coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads:/, /blocked [1-9]\d* malicious package downloads:/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
}); });

View file

@ -72,7 +72,7 @@ describe("E2E: yarn coverage", () => {
assert.match( assert.match(
result.output, result.output,
/blocked \d+ malicious package downloads/, /blocked [1-9]\d* malicious package downloads/,
`Output did not include expected text. Output was:\n${result.output}` `Output did not include expected text. Output was:\n${result.output}`
); );
assert.ok( assert.ok(