Skip to content

Commit 30a35e9

Browse files
author
Tiffany Le-Nguyen
committed
chore: put default demo in demos/default
1 parent 9e3dd0e commit 30a35e9

Some content is hidden

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

50 files changed

+6
-6
lines changed

cypress/integration/preview.spec.ts

+3-3
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

-1
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

demos/default/local-plugin/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../../lib')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"manifest.yml"
99
],
1010
"scripts": {
11-
"build:demo": "next build demo",
11+
"build:demo": "next build demos/default",
1212
"cy:open": "cypress open --config-file cypress/config/all.json",
1313
"cy:run": "cypress run --config-file ../cypress/config/ci.json",
14-
"dev:demo": "next dev demo",
14+
"dev:demo": "next dev demos/default",
1515
"format": "run-s format:check-fix:*",
1616
"format:ci": "run-s format:check:*",
1717
"format:check-fix:lint": "run-e format:check:lint format:fix:lint",

0 commit comments

Comments
 (0)