Skip to content

Commit

Permalink
use typescript config
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rowe <[email protected]>
  • Loading branch information
d-rowe authored Dec 2, 2024
1 parent 3f21f17 commit 3f736b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress.config.js → cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:5601',
specPattern: 'cypress/integration/**/*_spec.{js,jsx,ts,tsx}',
setupNodeEvents: setupNodeEvents,
setupNodeEvents,
},
});

function setupNodeEvents(on, config) {
function setupNodeEvents(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Cypress.PluginConfigOptions {

Check failure on line 34 in cypress.config.ts

View workflow job for this annotation

GitHub Actions / Lint and validate

Replace `on:·Cypress.PluginEvents,·config:·Cypress.PluginConfigOptions` with `⏎··on:·Cypress.PluginEvents,⏎··config:·Cypress.PluginConfigOptions⏎`
const webpackPreprocessor = require('@cypress/webpack-preprocessor');

Check failure on line 35 in cypress.config.ts

View workflow job for this annotation

GitHub Actions / Lint and validate

Require statement not part of import statement
const webpackOptions = webpackPreprocessor.defaultOptions.webpackOptions;

Expand All @@ -53,7 +53,7 @@ function setupNodeEvents(on, config) {
on(
'file:preprocessor',
webpackPreprocessor({
webpackOptions: webpackOptions,
webpackOptions,
})
);

Expand Down

0 comments on commit 3f736b7

Please sign in to comment.