diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/cypress.config.ts b/cypress.config.ts index 3acf8c5c49..33d8e8f6e5 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -5,9 +5,6 @@ export default defineConfig({ 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); - }, specPattern: 'cypress/e2e/**/*.cy.ts', baseUrl: 'http://localhost:3000', }, diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js deleted file mode 100644 index bf75766cd9..0000000000 --- a/cypress/plugins/index.js +++ /dev/null @@ -1,13 +0,0 @@ -const path = require('path'); -const { startDevServer } = require('@cypress/vite-dev-server'); - -module.exports = (on, config) => { - on('dev-server:start', (options) => { - return startDevServer({ - options, - viteConfig: { - configFile: path.resolve(__dirname, '..', '..', 'vite.config.js'), - }, - }); - }); -}; diff --git a/package.json b/package.json index 8a3ac6f814..d1dac0fa1f 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "frequi", "version": "0.1.0", "private": true, + "type": "module", "scripts": { "dev": "vite", "build": "vite build",