Skip to content

Commit 38fdd62

Browse files
author
Tiffany Le-Nguyen
authored
chore: put default demo in demos/default (#836)
* chore: put default demo in demos/default * chore: fix cypress path * chore: fix other paths * chore: fix paths in cypress config
1 parent 142518d commit 38fdd62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+17
-17
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ Temporary Items
143143

144144
# CLI
145145
.netlify
146-
demo/.next
146+
demos/default/.next
147147
.parcel-cache
148148
lib

cypress/config/ci.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"baseUrl": "http://localhost:3000",
3-
"integrationFolder": "../cypress/integration",
4-
"pluginsFile": "../cypress/plugins",
5-
"screenshotsFolder": "../cypress/screenshots",
6-
"supportFile": "../cypress/support/index.js",
7-
"videoFolder": "../cypress/videos"
3+
"integrationFolder": "../../cypress/integration",
4+
"pluginsFile": "../../cypress/plugins",
5+
"screenshotsFolder": "../../cypress/screenshots",
6+
"supportFile": "../../cypress/support/index.js",
7+
"videoFolder": "../../cypress/videos"
88
}

cypress/integration/preview.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('Preview Mode', () => {
22
it('enters and exits preview mode', () => {
33
// preview mode is off by default
44
cy.visit('/previewTest')
5-
cy.findByText('Number: 4')
5+
cy.findByText('Is preview? No')
66

77
// enter preview mode
88
cy.request('/api/enterPreview').then(
@@ -11,11 +11,11 @@ describe('Preview Mode', () => {
1111
}
1212
)
1313
cy.visit('/previewTest')
14-
cy.findByText('Number: 3')
14+
cy.findByText('Is preview? Yes!')
1515

1616
// exit preview mode
1717
cy.request('/api/exitPreview')
1818
cy.visit('/previewTest')
19-
cy.findByText('Number: 4')
19+
cy.findByText('Is preview? No')
2020
})
2121
})

demo/local-plugin/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

demos/default/local-plugin/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../../lib')

0 commit comments

Comments
 (0)