Skip to content

Commit 46cc4e5

Browse files
author
Tiffany Le-Nguyen
committed
chore: get cypress to work with netlify plugin
1 parent f283814 commit 46cc4e5

File tree

9 files changed

+11
-12
lines changed

9 files changed

+11
-12
lines changed

cypress/config/all.json

-4
This file was deleted.

demo/cypress/config/all.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"video": false
3+
}
File renamed without changes.

cypress/integration/test.spec.ts renamed to demo/cypress/integration/test.spec.ts

-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@ describe('TypeScript spec', () => {
22
it('works', () => {
33
cy.wrap('foo').should('equal', 'foo')
44
})
5-
6-
it('test', () => {
7-
expect(10).to.equal(10)
8-
})
95
})
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"extends": "../tsconfig.json",
2+
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"noEmit": true,
55
// be explicit about types included
66
// to avoid clashing with Jest types
77
"types": ["cypress", "mocha", "@testing-library/cypress"]
88
},
99
"include": [
10-
"../node_modules/cypress",
10+
"../../node_modules/cypress",
1111
"./**/*.ts"
1212
]
1313
}

demo/netlify.toml

+5
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ package = "./local-plugin"
1111

1212
[[plugins]]
1313
package = "@netlify/plugin-local-install-core"
14+
15+
[[plugins]]
16+
package = "netlify-plugin-cypress"
17+
[plugins.inputs]
18+
configFile = "cypress/config/all.json"

netlify.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[build]
2-
base="demo/"
3-
2+
base="demo/"

0 commit comments

Comments
 (0)