Skip to content

Commit 8d6e376

Browse files
authored
fix: upgrade tester-plugin-puppeteer (#4)
1 parent 1e17f51 commit 8d6e376

File tree

4 files changed

+182
-182
lines changed

4 files changed

+182
-182
lines changed

.renovaterc.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
"extends": [
33
":semanticCommits"
44
],
5+
"ignorePaths": [
6+
".github/workflows/build.yml"
7+
],
58
"labels": [
69
"maintenance"
710
],
8-
"semanticCommitScope": null,
11+
"lockFileMaintenance": {
12+
"enabled": true
13+
},
914
"packageRules": [
1015
{
1116
"packagePatterns": [
@@ -23,7 +28,5 @@
2328
"semanticCommitType": "fix"
2429
}
2530
],
26-
"lockFileMaintenance": {
27-
"enabled": true
28-
}
31+
"semanticCommitScope": null
2932
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"@dword-design/puppeteer": "^3.0.1",
3333
"@dword-design/tester": "^1.2.1",
3434
"@dword-design/tester-plugin-component": "^1.0.0",
35-
"@dword-design/tester-plugin-puppeteer": "^1.0.3",
36-
"puppeteer-to-istanbul": "dword-design/puppeteer-to-istanbul#fork"
35+
"@dword-design/tester-plugin-puppeteer": "^2.0.0"
3736
},
3837
"publishConfig": {
3938
"access": "public"

src/index.spec.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { endent } from '@dword-design/functions'
22
import tester from '@dword-design/tester'
33
import testerPluginComponent from '@dword-design/tester-plugin-component'
44
import testerPluginPuppeteer from '@dword-design/tester-plugin-puppeteer'
5-
import P from 'path'
6-
import puppeteerToIstanbul from 'puppeteer-to-istanbul'
7-
8-
const storagePath = P.resolve('.nyc_output')
95

106
export default tester(
117
{
@@ -33,14 +29,11 @@ export default tester(
3329
3430
`,
3531
async test() {
36-
await this.page.coverage.startJSCoverage()
3732
await this.page.goto('http://localhost:3000')
3833
await this.page.waitForSelector('.foo')
3934
expect(
4035
await this.page.screenshot({ fullPage: true })
4136
).toMatchImageSnapshot(this)
42-
const coverage = await this.page.coverage.stopJSCoverage()
43-
puppeteerToIstanbul.write(coverage, { storagePath })
4437
},
4538
},
4639
},

0 commit comments

Comments
 (0)