File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " @humansignal/frontend-tests" ,
3
+ "version" : " 1.0.0" ,
4
+ "dependencies" : {},
5
+ "devDependencies" : {},
6
+ "files" : [" ./src/**/*" ]
7
+ }
Original file line number Diff line number Diff line change @@ -8,16 +8,17 @@ import { addMatchImageSnapshotPlugin } from "cypress-image-snapshot/plugin";
8
8
import { nxE2EPreset } from "@nx/cypress/plugins/cypress-preset" ;
9
9
10
10
const COLLECT_COVERAGE = process . env . COLLECT_COVERAGE === "true" || process . env . COLLECT_COVERAGE === "1" ;
11
- const localPath = ( p ) => path . resolve ( process . cwd ( ) , p ) ;
11
+ const localPath = ( p : string ) => path . resolve ( process . cwd ( ) , p ) ;
12
12
13
13
/**
14
14
* Override Cypress settings
15
- * @param {(config: Cypress.ConfigOptions) => Cypress.ConfigOptions } configModifier
16
- * @param {Cypress.EndToEndConfigOptions["setupNodeEvents"]? } setupNodeEvents
17
15
*/
18
- export default function ( configModifier , setupNodeEvents ) {
16
+ export default function (
17
+ configModifier ?: ( config : Cypress . ConfigOptions ) => Cypress . ConfigOptions ,
18
+ setupNodeEvents ?: Cypress . EndToEndConfigOptions [ "setupNodeEvents" ] ,
19
+ ) {
19
20
/** @type {Cypress.ConfigOptions<any> } */
20
- const defaultConfig = {
21
+ const defaultConfig : Cypress . ConfigOptions = {
21
22
// Assets configuration
22
23
supportFolder : localPath ( "./cypress/support/" ) ,
23
24
videosFolder : localPath ( "./output/video" ) ,
You can’t perform that action at this time.
0 commit comments