Skip to content

Commit

Permalink
refactor: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Mar 20, 2024
1 parent 6341f9f commit da5b211
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import setupCoverage from '@cypress/code-coverage/task';
import { defineConfig } from 'cypress';

export default defineConfig({
Expand All @@ -13,8 +14,10 @@ export default defineConfig({
VITE_GRAASP_LIBRARY_HOST: process.env.VITE_GRAASP_LIBRARY_HOST,
VITE_GRAASP_ACCOUNT_HOST: process.env.VITE_GRAASP_ACCOUNT_HOST,
},
setupNodeEvents(_on, _config) {
setupNodeEvents(on, config) {
// implement node event listeners here
setupCoverage(on, config);
return config;
},
baseUrl: `http://localhost:${process.env.VITE_PORT || 3333}`,
},
Expand Down
7 changes: 4 additions & 3 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'
import '@cypress/code-coverage/support';

import './commands';

// Alternatively you can use CommonJS syntax:
// require('./commands')
// require('./commands')

0 comments on commit da5b211

Please sign in to comment.