Skip to content

Commit

Permalink
ci: changes for cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdharmen committed Jun 23, 2024
1 parent 57bdb2d commit fff473e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start
component: true

- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { defineConfig } = require('cypress');
import { defineConfig } from 'cypress'

module.exports = defineConfig({
export default defineConfig({
component: {
devServer: {
framework: 'angular',
bundler: 'webpack',
},
specPattern: '**/*.cy.ts',
},
});
})
24 changes: 11 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"postbuild:lib": "npm run build --prefix projects/ngxpert/cmdk",
"semantic-release": "semantic-release",
"lint": "ng lint",
"unit": "npm run cy:open",
"cy:open": "cypress open"
"unit": "npm run cy:open"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -62,7 +61,7 @@
"commitizen": "^4.2.5",
"cpx": "^1.5.0",
"cross-env": "^7.0.3",
"cypress": "^13.4.0",
"cypress": "^13.12.0",
"eslint": "^8.57.0",
"husky": "^8.0.1",
"jasmine-core": "~4.2.0",
Expand Down

0 comments on commit fff473e

Please sign in to comment.