Skip to content

Commit

Permalink
Add a command line test and mochajson reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehsurfer committed Mar 8, 2024
1 parent ca1c387 commit 1df8c11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 1 addition & 9 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ const config = defineConfig({
reporterOptions: {
configFile: "reporter-config.json"
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config);
},
},

component: {
setupNodeEvents(on, config) {},
specPattern: "cypress/component/*.cy.js",
devServer: {
framework: "vue",
Expand All @@ -29,4 +21,4 @@ const config = defineConfig({
},
});

export default config;
export default config;
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"serve": "vite --host",
"build-bundle": "vite build",
"build-static": "vite build -c vite.static-build.js",
"test": "cypress run --component --browser chrome",
"cypress:open": "cypress open",
"release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
"release:minor": "npm version minor; npm publish",
Expand Down Expand Up @@ -61,10 +62,12 @@
"babel-plugin-component": "^1.1.1",
"base64-inline-loader": "^2.0.1",
"cypress": "^13.6.6",
"cypress-multi-reporters": "^1.6.4",
"cypress-wait-until": "^2.0.1",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-vue": "^9.19.2",
"mochawesome": "^7.1.3",
"sass": "^1.69.5",
"vite": "^5.0.10",
"webpack-node-externals": "^2.5.2"
Expand Down

0 comments on commit 1df8c11

Please sign in to comment.