-
-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't block command when storing snapshots
- Loading branch information
1 parent
eec1182
commit a3d2c81
Showing
13 changed files
with
189 additions
and
12 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
1 change: 0 additions & 1 deletion
1
packages/test-runner-commands/test/snapshot/__snapshots__/browser-test.snap.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
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: 15 additions & 0 deletions
15
packages/test-runner/demo/test/__snapshots__/pass-snapshot-1.test.snap.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,15 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["snapshot-a"] = | ||
`some snapshot A1`; | ||
/* end snapshot snapshot-a */ | ||
|
||
snapshots["snapshot-b"] = | ||
`some snapshot B1`; | ||
/* end snapshot snapshot-b */ | ||
|
||
snapshots["snapshot-c"] = | ||
`some snapshot C1`; | ||
/* end snapshot snapshot-c */ | ||
|
15 changes: 15 additions & 0 deletions
15
packages/test-runner/demo/test/__snapshots__/pass-snapshot-2.test.snap.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,15 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["snapshot-a"] = | ||
`some snapshot A2`; | ||
/* end snapshot snapshot-a */ | ||
|
||
snapshots["snapshot-b"] = | ||
`some snapshot B2`; | ||
/* end snapshot snapshot-b */ | ||
|
||
snapshots["snapshot-c"] = | ||
`some snapshot C2`; | ||
/* end snapshot snapshot-c */ | ||
|
15 changes: 15 additions & 0 deletions
15
packages/test-runner/demo/test/__snapshots__/pass-snapshot-3.test.snap.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,15 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["snapshot-a"] = | ||
`some snapshot A3`; | ||
/* end snapshot snapshot-a */ | ||
|
||
snapshots["snapshot-b"] = | ||
`some snapshot B3`; | ||
/* end snapshot snapshot-b */ | ||
|
||
snapshots["snapshot-c"] = | ||
`some snapshot C3`; | ||
/* end snapshot snapshot-c */ | ||
|
15 changes: 15 additions & 0 deletions
15
packages/test-runner/demo/test/__snapshots__/pass-snapshot-4.test.snap.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,15 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["snapshot-a"] = | ||
`some snapshot A4`; | ||
/* end snapshot snapshot-a */ | ||
|
||
snapshots["snapshot-b"] = | ||
`some snapshot B4`; | ||
/* end snapshot snapshot-b */ | ||
|
||
snapshots["snapshot-c"] = | ||
`some snapshot C4`; | ||
/* end snapshot snapshot-c */ | ||
|
15 changes: 15 additions & 0 deletions
15
packages/test-runner/demo/test/__snapshots__/pass-snapshot-5.test.snap.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,15 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["snapshot-a"] = | ||
`some snapshot A5`; | ||
/* end snapshot snapshot-a */ | ||
|
||
snapshots["snapshot-b"] = | ||
`some snapshot B5`; | ||
/* end snapshot snapshot-b */ | ||
|
||
snapshots["snapshot-c"] = | ||
`some snapshot C5`; | ||
/* end snapshot snapshot-c */ | ||
|
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,13 @@ | ||
import { compareSnapshot, removeSnapshot } from '@web/test-runner-commands'; | ||
|
||
it('can test snapshot A', async () => { | ||
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A1' }); | ||
}); | ||
|
||
it('can test snapshot B', async () => { | ||
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B1' }); | ||
}); | ||
|
||
it('can test snapshot C', async () => { | ||
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot C1' }); | ||
}); |
6 changes: 3 additions & 3 deletions
6
...st-runner/demo/test/pass-snapshot.test.js → ...-runner/demo/test/pass-snapshot-2.test.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { compareSnapshot } from '@web/test-runner-commands'; | ||
|
||
it('can test snapshot A', async () => { | ||
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A' }); | ||
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A2' }); | ||
}); | ||
|
||
it('can test snapshot B', async () => { | ||
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B' }); | ||
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B2' }); | ||
}); | ||
|
||
it('can test snapshot C', async () => { | ||
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot B' }); | ||
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot C2' }); | ||
}); |
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,13 @@ | ||
import { compareSnapshot } from '@web/test-runner-commands'; | ||
|
||
it('can test snapshot A', async () => { | ||
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A3' }); | ||
}); | ||
|
||
it('can test snapshot B', async () => { | ||
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B3' }); | ||
}); | ||
|
||
it('can test snapshot C', async () => { | ||
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot C3' }); | ||
}); |
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,13 @@ | ||
import { compareSnapshot } from '@web/test-runner-commands'; | ||
|
||
it('can test snapshot A', async () => { | ||
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A4' }); | ||
}); | ||
|
||
it('can test snapshot B', async () => { | ||
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B4' }); | ||
}); | ||
|
||
it('can test snapshot C', async () => { | ||
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot C4' }); | ||
}); |
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,13 @@ | ||
import { compareSnapshot } from '@web/test-runner-commands'; | ||
|
||
it('can test snapshot A', async () => { | ||
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A5' }); | ||
}); | ||
|
||
it('can test snapshot B', async () => { | ||
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B5' }); | ||
}); | ||
|
||
it('can test snapshot C', async () => { | ||
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot C5' }); | ||
}); |