Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 38b9633

Browse files
committed
chore: Update Istanbul to NYC
1 parent d63b5bf commit 38b9633

File tree

5 files changed

+21
-90
lines changed

5 files changed

+21
-90
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ name: Coverage
33
on:
44
push:
55
paths:
6+
- ".nycrc.json"
67
- "**/*.js"
78
- "test/**"
89
- "package.json"
910
- "bin/node-sass"
1011
- ".github/workflows/coverage.yml"
1112
pull_request:
1213
paths:
14+
- ".nycrc.json"
1315
- "**/*.js"
1416
- "test/**"
1517
- "package.json"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ test/lcov.info
1111
test/fixtures/watching-css-out-01
1212
test/fixtures/watching-css-out-02
1313
coverage
14-
package-lock.json
14+
package-lock.json
15+
.nyc_output

.nycrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"all": true,
3+
"include": [
4+
"bin/*",
5+
"lib/*.js",
6+
"scripts/**/*.js"
7+
],
8+
"extension": [
9+
"node-sass"
10+
],
11+
"reporter": [
12+
"lcovonly"
13+
]
14+
}

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
},
2828
"gypfile": true,
2929
"scripts": {
30-
"coverage": "node scripts/coverage.js",
30+
"coverage": "nyc npm run test",
3131
"install": "node scripts/install.js",
3232
"postinstall": "node scripts/build.js",
3333
"lint": "eslint bin/node-sass lib scripts test",
34-
"test": "node_modules/.bin/mocha test/{*,**/**}.js",
34+
"test": "mocha test/{*,**/**}.js",
3535
"build": "node scripts/build.js --force",
3636
"prepublish": "not-in-install && node scripts/prepublish.js || in-install"
3737
},
@@ -72,12 +72,10 @@
7272
"true-case-path": "^1.0.2"
7373
},
7474
"devDependencies": {
75-
"coveralls": "^3.0.2",
7675
"eslint": "^7.10.0",
7776
"fs-extra": "^0.30.0",
78-
"istanbul": "^0.4.2",
7977
"mocha": "^8.1.3",
80-
"mocha-lcov-reporter": "^1.2.0",
78+
"nyc": "^15.1.0",
8179
"rimraf": "^2.5.2",
8280
"unique-temp-dir": "^1.0.0"
8381
}

scripts/coverage.js

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)