fix(testing): only target files in src/* directory for component testing (#13604)
This commit is contained in:
parent
76536fda60
commit
ddc2dca30d
@ -100,7 +100,7 @@ ${e.stack ? e.stack : e}`
|
|||||||
return {
|
return {
|
||||||
...nxBaseCypressPreset(pathToConfig),
|
...nxBaseCypressPreset(pathToConfig),
|
||||||
// NOTE: cannot use a glob pattern since it will break cypress generated tsconfig.
|
// NOTE: cannot use a glob pattern since it will break cypress generated tsconfig.
|
||||||
specPattern: ['**/*.cy.ts', '**/*.cy.js'],
|
specPattern: ['src/**/*.cy.ts', 'src/**/*.cy.js'],
|
||||||
devServer: {
|
devServer: {
|
||||||
// cypress uses string union type,
|
// cypress uses string union type,
|
||||||
// need to use const to prevent typing to string
|
// need to use const to prevent typing to string
|
||||||
|
|||||||
@ -93,6 +93,7 @@ export function nxComponentTestingPreset(
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...nxBaseCypressPreset(pathToConfig),
|
...nxBaseCypressPreset(pathToConfig),
|
||||||
|
specPattern: 'src/**/*.cy.{js,jsx,ts,tsx}',
|
||||||
devServer: {
|
devServer: {
|
||||||
// cypress uses string union type,
|
// cypress uses string union type,
|
||||||
// need to use const to prevent typing to string
|
// need to use const to prevent typing to string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user