Skip to content

Commit

Permalink
migrate to c8
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 6, 2023
1 parent 2fd1c0a commit c4a0778
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 360 deletions.
10 changes: 3 additions & 7 deletions babel.config.json
Expand Up @@ -4,12 +4,8 @@
},
"presets": [
["@babel/preset-env", {
"loose": true
"loose": true,
"bugfixes": true
}]
],
"env": {
"test": {
"plugins": ["istanbul"]
}
}
]
}
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -24,8 +24,8 @@
"@babel/preset-env": "^7.19.4",
"ava": "^3.13.0",
"babel-eslint": "^10.1.0",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-react-intl": "^8.2.25",
"c8": "^8.0.0",
"cross-env": "^7.0.2",
"eslint": "^7.13.0",
"eslint-config-babel": "^9.0.0",
Expand All @@ -34,7 +34,6 @@
"eslint-plugin-prettier": "^3.0.0",
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"nyc": "^15.1.0",
"pnp-webpack-plugin": "^1.6.4",
"prettier": "^2.1.2",
"react": "^17.0.1",
Expand All @@ -52,8 +51,8 @@
"precommit": "lint-staged",
"prepublish": "yarn run clean && yarn run build",
"preversion": "yarn run test",
"test": "yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only",
"test-only": "nyc ava"
"test": "yarn run lint && yarn run build && c8 yarn run test-only",
"test-only": "ava"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c4a0778

Please sign in to comment.