Skip to content

Commit

Permalink
chore(#92): move cypress to root package
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Aug 27, 2022
1 parent 1c6a435 commit 8ec9405
Show file tree
Hide file tree
Showing 5 changed files with 4,689 additions and 2,708 deletions.
14 changes: 2 additions & 12 deletions examples/druxt-site/package.json
@@ -1,19 +1,11 @@
{
"name": "druxt-site",
"scripts": {
"cypress:open": "npx cypress open --project test",
"cypress:run": "npx cypress run --project test",
"dev": "nuxt dev",
"generate": "nuxt generate",
"serve": "yarn generate && yarn start",
"start": "nuxt start",
"storybook": "nuxt storybook",
"test": "start-server-and-test 'yarn dev' http://localhost:3000 'yarn cypress:run'",
"test:open": "start-server-and-test 'yarn dev' http://localhost:3000 'yarn cypress:open'",
"test:cypress:run": "yarn cypress:run",
"test:cypress:run:mobile": "yarn cypress:run --config viewportWidth=375,viewportHeight=667",
"test:cypress:open": "yarn cypress:open",
"test:cypress:open:mobile": "yarn cypress:open --config viewportWidth=375,viewportHeight=667"
"storybook": "nuxt storybook"
},
"dependencies": {
"druxt-auth": "^0.1.0",
Expand All @@ -23,8 +15,6 @@
"devDependencies": {
"@nuxt/postcss8": "latest",
"@nuxtjs/storybook": "latest",
"cypress": "^10.3.0",
"postcss": "latest",
"start-server-and-test": "^1.14.0"
"postcss": "latest"
}
}
5 changes: 1 addition & 4 deletions examples/druxt-site/test/cypress.config.js
Expand Up @@ -2,9 +2,6 @@ const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: 'http://localhost:3000'
},
});

0 comments on commit 8ec9405

Please sign in to comment.