You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The double hyphen appears to not be working for pnpm >=7
const isNpmStyle = command.startsWith('npm') || command.startsWith('pnpm');
command,
// add two hypens if it is npm or pnpm package managers and two hyphens don't already exist
isNpmStyle && !hasDoubleHyphen && '--',
Version <7 is working fine:
pnpm --version
6.2.1
pnpm test:unit -- --ci --json --coverage --testLocationInResults --outputFile=report.json
...
Test Suites: 16 passed, 16 total
Tests: 328 passed, 328 total
Snapshots: 4 passed, 4 total
Time: 7.577 s
Ran all test suites.
Test results written to: report.json
Version >=7 is not detecting tests with the double hyphens:
pnpm --version
7.2.1
pnpm test:unit -- --ci --json --coverage --testLocationInResults --outputFile=report.json
No tests found, exiting with code 1
Version >=7 is working fine when removing the double hyphens:
pnpm --version
7.2.1
pnpm test:unit --ci --json --coverage --testLocationInResults --outputFile=report.json
...
Test Suites: 16 passed, 16 total
Tests: 328 passed, 328 total
Snapshots: 4 passed, 4 total
Time: 9.823 s
Ran all test suites.
Test results written to: report.json
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The double hyphen appears to not be working for pnpm >=7
const isNpmStyle = command.startsWith('npm') || command.startsWith('pnpm');
command,
// add two hypens if it is npm or pnpm package managers and two hyphens don't already exist
isNpmStyle && !hasDoubleHyphen && '--',
Version <7 is working fine:
pnpm --version
6.2.1
pnpm test:unit -- --ci --json --coverage --testLocationInResults --outputFile=report.json
...
Test Suites: 16 passed, 16 total
Tests: 328 passed, 328 total
Snapshots: 4 passed, 4 total
Time: 7.577 s
Ran all test suites.
Test results written to: report.json
Version >=7 is not detecting tests with the double hyphens:
pnpm --version
7.2.1
pnpm test:unit -- --ci --json --coverage --testLocationInResults --outputFile=report.json
No tests found, exiting with code 1
Version >=7 is working fine when removing the double hyphens:
pnpm --version
7.2.1
pnpm test:unit --ci --json --coverage --testLocationInResults --outputFile=report.json
...
Test Suites: 16 passed, 16 total
Tests: 328 passed, 328 total
Snapshots: 4 passed, 4 total
Time: 9.823 s
Ran all test suites.
Test results written to: report.json
Beta Was this translation helpful? Give feedback.
All reactions