Skip to content

Conversation

@MikeMcC399
Copy link
Contributor

@MikeMcC399 MikeMcC399 commented Nov 8, 2024

Issue

The package.json script test fails.

"test": "npm run cypress run",

Issue Log

$ npm test

> [email protected] test
> npm run cypress run

npm ERR! Missing script: "cypress"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

Change

See Cypress documentation Using scripts.

Use instead

    "test": "cypress run",

Verification

Ubuntu 24.04.1 LTS, Node 18.17.1 LTS

Execute:

npm ci
npm start

In a separate terminal window, execute:

npm test

Confirm that Cypress tests are run.

@netlify
Copy link

netlify bot commented Nov 8, 2024

👷 Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7c4bd76

@cypress-app-bot
Copy link
Collaborator

@MikeMcC399 MikeMcC399 marked this pull request as ready for review November 8, 2024 12:42
@jennifer-shehane jennifer-shehane merged commit d82b073 into cypress-io:main Nov 8, 2024
7 checks passed
@MikeMcC399 MikeMcC399 deleted the fix/test-script branch November 8, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants