File tree Expand file tree Collapse file tree 18 files changed +47
-80
lines changed
jsx-pinia-with-tests/cypress/plugins
jsx-router-pinia-with-tests/cypress/plugins
jsx-router-with-tests/cypress/plugins
jsx-with-tests/cypress/plugins
pinia-with-tests/cypress/plugins
router-pinia-with-tests/cypress/plugins
router-with-tests/cypress/plugins
typescript-jsx-pinia-with-tests/cypress/plugins
typescript-jsx-router-pinia-with-tests/cypress/plugins
typescript-jsx-router-with-tests/cypress/plugins
typescript-jsx-with-tests/cypress/plugins
typescript-pinia-with-tests/cypress/plugins
typescript-router-pinia-with-tests/cypress/plugins
typescript-router-with-tests/cypress/plugins
typescript-with-tests/cypress/plugins
with-tests/cypress/plugins Expand file tree Collapse file tree 18 files changed +47
-80
lines changed Original file line number Diff line number Diff line change 36
36
cache : ' pnpm'
37
37
- run : pnpm install
38
38
- run : pnpm pretest
39
+ # Rerun install to ensure the dependencies in the playground apps are resolved correctly
40
+ - run : pnpm install
39
41
- run : pnpm test
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
2
/// <reference types="cypress" />
4
3
// ***********************************************************
5
4
// This example plugins/index.js can be used to load plugins
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
2
+ /// <reference types="node" />
3
3
/// <reference types="cypress" />
4
4
// ***********************************************************
5
- // This example plugins/index.js can be used to load plugins
5
+ // This example plugins/index.ts can be used to load plugins
6
6
//
7
7
// You can change the location of this file or turn off loading
8
8
// the plugins file with the 'pluginsFile' configuration option.
14
14
// This function is called when a project is opened or re-opened (e.g. due to
15
15
// the project's config changing)
16
16
17
- const { startDevServer } = require ( '@cypress/vite-dev-server' )
17
+ import { startDevServer } from '@cypress/vite-dev-server'
18
18
19
- /**
20
- * @type {Cypress.PluginConfig }
21
- */
22
- // eslint-disable-next-line no-unused-vars
23
- module . exports = ( on , config ) => {
19
+ export default ( ( on , config ) => {
24
20
// `on` is used to hook into various events Cypress emits
25
21
// `config` is the resolved Cypress config
26
22
on ( 'dev-server:start' , ( options ) => {
27
23
return startDevServer ( { options } )
28
24
} )
29
25
return config
30
- }
26
+ } ) as Cypress . PluginConfig
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
2
+ /// <reference types="node" />
3
3
/// <reference types="cypress" />
4
4
// ***********************************************************
5
- // This example plugins/index.js can be used to load plugins
5
+ // This example plugins/index.ts can be used to load plugins
6
6
//
7
7
// You can change the location of this file or turn off loading
8
8
// the plugins file with the 'pluginsFile' configuration option.
14
14
// This function is called when a project is opened or re-opened (e.g. due to
15
15
// the project's config changing)
16
16
17
- const { startDevServer } = require ( '@cypress/vite-dev-server' )
17
+ import { startDevServer } from '@cypress/vite-dev-server'
18
18
19
- /**
20
- * @type {Cypress.PluginConfig }
21
- */
22
- // eslint-disable-next-line no-unused-vars
23
- module . exports = ( on , config ) => {
19
+ export default ( ( on , config ) => {
24
20
// `on` is used to hook into various events Cypress emits
25
21
// `config` is the resolved Cypress config
26
22
on ( 'dev-server:start' , ( options ) => {
27
23
return startDevServer ( { options } )
28
24
} )
29
25
return config
30
- }
26
+ } ) as Cypress . PluginConfig
You can’t perform that action at this time.
0 commit comments