Skip to content

Commit 44cf88b

Browse files
committed
Merge branch 'main' into v4
2 parents 6635373 + 335fc50 commit 44cf88b

23 files changed

+7840
-3387
lines changed

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ module.exports = {
2828
'unicorn/filename-case': 0,
2929
'unicorn/no-array-push-push': 0,
3030
},
31+
parserOptions: {
32+
sourceType: 'module',
33+
},
3134
env: {
3235
jest: true,
3336
},

.github/.kodiak.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version = 1
2+
3+
[merge.automerge_dependencies]
4+
versions = ["minor", "patch"]
5+
usernames = ["renovate"]
6+
7+
[approve]
8+
auto_approve_usernames = ["renovate"]

.github/pull_request_template.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--Please tag yourself as the Assignee and at least one specific Ecosystem engineer as the Reviewer (@ascorbic, @lindsaylevine, @tiffanosaurus) -->
2+
3+
### Summary
4+
<!-- Provide a summary brief summary of the change. -->
5+
6+
### Screenshots changes if applicable
7+
<!-- Please delete this section if not applicable to this PR. -->
8+
9+
**Before:**
10+
11+
**After:**
12+
13+
### Test plan
14+
15+
1. Visit the Deploy Preview ([insert link to specific page]())
16+
...
17+
18+
### Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal (small picture)
19+
20+
### Standard checks:
21+
<!-- Please delete any options that reviewers shouldn't check. -->
22+
23+
- [ ] Check the Deploy Preview's Demo site for your PR's functionality
24+
- [ ] Add docs when necessary
25+
---
26+
27+
🧪 Once merged, make sure to update the version if needed and that it was published correctly.

demo/cypress/config/all.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"video": false
3+
}

demo/cypress/fixtures/example.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Using fixtures to represent data",
3+
"email": "[email protected]",
4+
"body": "Fixtures are a great way to mock data for responses to routes"
5+
}

demo/cypress/integration/test.spec.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
describe('TypeScript spec', () => {
2+
beforeEach(() => {
3+
cy.visit('/')
4+
})
5+
6+
it('loads home page', () => {
7+
cy.get('h1')
8+
})
9+
})

demo/cypress/plugins/index.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// <reference types="cypress" />
2+
// ***********************************************************
3+
// This example plugins/index.js can be used to load plugins
4+
//
5+
// You can change the location of this file or turn off loading
6+
// the plugins file with the 'pluginsFile' configuration option.
7+
//
8+
// You can read more here:
9+
// https://on.cypress.io/plugins-guide
10+
// ***********************************************************
11+
12+
// This function is called when a project is opened or re-opened (e.g. due to
13+
// the project's config changing)
14+
15+
/**
16+
* @type {Cypress.PluginConfig}
17+
*/
18+
// eslint-disable-next-line no-unused-vars
19+
module.exports = (on, config) => {
20+
// `on` is used to hook into various events Cypress emits
21+
// `config` is the resolved Cypress config
22+
}

demo/cypress/support/commands.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unassigned-import
2+
import '@testing-library/cypress/add-commands';

demo/cypress/tsconfig.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
// be explicit about types included
6+
// to avoid clashing with Jest types
7+
"types": ["cypress", "mocha", "@testing-library/cypress"]
8+
},
9+
"include": [
10+
"../../node_modules/cypress",
11+
"./**/*.ts"
12+
]
13+
}

demo/netlify.toml

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ command = "next build"
33
publish = ".next"
44
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../"
55

6+
[build.environment]
7+
# cache Cypress binary in local "node_modules" folder
8+
# so Netlify caches it
9+
CYPRESS_CACHE_FOLDER = "../node_modules/.CypressBinary"
10+
611
[dev]
712
framework = "#static"
813

@@ -11,3 +16,9 @@ package = "./local-plugin"
1116

1217
[[plugins]]
1318
package = "@netlify/plugin-local-install-core"
19+
20+
[[plugins]]
21+
package = "netlify-plugin-cypress"
22+
23+
[plugins.inputs]
24+
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)