-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update svelte templates to use web-test-runner
- Loading branch information
1 parent
33af5f0
commit 7f1690b
Showing
23 changed files
with
85 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-lit-element-typescript/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-lit-element/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-preact-typescript/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-preact/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
create-snowpack-app/app-template-svelte-typescript/jest.config.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
create-snowpack-app/app-template-svelte-typescript/jest.setup.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
create-snowpack-app/app-template-svelte-typescript/src/App.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { render } from "@testing-library/svelte"; | ||
import App from "./App.svelte"; | ||
import {render} from '@testing-library/svelte'; | ||
import {expect} from 'chai'; | ||
import App from './App.svelte'; | ||
|
||
test("renders learn svelte link", () => { | ||
const { getByText } = render(App); | ||
const linkElement: HTMLElement = getByText(/learn svelte/i); | ||
expect(linkElement).toBeInTheDocument(); | ||
describe('<App>', () => { | ||
it('renders learn svelte link', () => { | ||
const {getByText} = render(App); | ||
const linkElement = getByText(/learn svelte/i); | ||
expect(document.body.contains(linkElement)); | ||
}); | ||
}); |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-svelte-typescript/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { render } from "@testing-library/svelte"; | ||
import App from "./App"; | ||
import {render} from '@testing-library/svelte'; | ||
import {expect} from 'chai'; | ||
import App from './App.svelte'; | ||
|
||
test("renders learn svelte link", () => { | ||
const { getByText } = render(App); | ||
const linkElement = getByText(/learn svelte/i); | ||
expect(linkElement).toBeInTheDocument(); | ||
describe('<App>', () => { | ||
it('renders learn svelte link', () => { | ||
const {getByText} = render(App); | ||
const linkElement = getByText(/learn svelte/i); | ||
expect(document.body.contains(linkElement)); | ||
}); | ||
}); |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-svelte/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-vue-typescript/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
6 changes: 6 additions & 0 deletions
6
create-snowpack-app/app-template-vue/web-test-runner.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// NODE_ENV=test - Needed by "@snowpack/web-test-runner-plugin" | ||
process.env.NODE_ENV = 'test'; | ||
|
||
module.exports = { | ||
plugins: [require('@snowpack/web-test-runner-plugin')()], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7f1690b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: