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

Commit 4948ee3

Browse files
Merge pull request #93 from saneyuki/ava
Upgrade ava to v3
2 parents bada990 + a04db8f commit 4948ee3

File tree

5 files changed

+872
-1266
lines changed

5 files changed

+872
-1266
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ executors:
1414
build_executor:
1515
working_directory: *workspace_root
1616
docker:
17-
- image: node:13.2-stretch
17+
- image: node:13.6-buster
1818

1919

2020
###########################################

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ eslint:
1919

2020
.PHONY: ava
2121
ava:
22-
$(NPM_BIN_DIR)/ava
22+
$(NPM_BIN_DIR)/ava --config $(CURDIR)/ava.config.cjs
2323

2424
# CI
2525
ci: test

ava.config.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*eslint-env commonjs*/
2+
3+
'use strict';
4+
5+
module.exports = function resolveAvaConfig() {
6+
return {
7+
'files': [
8+
'src/**/__tests__/**/*.js'
9+
],
10+
'babel': {
11+
'testOptions': {
12+
'presets': [],
13+
'babelrc': false
14+
}
15+
}
16+
};
17+
};

package.json

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,12 @@
88
"author": "",
99
"license": "MIT",
1010
"devDependencies": {
11-
"ava": "^2.4.0",
11+
"@ava/babel": "^1.0.0",
12+
"ava": "^3.0.0",
1213
"eslint": "^6.8.0",
1314
"eslint-config-abema": "https://github.com/cats-oss/eslint-config-abema/archive/3ea096a67c9cc6000203dc5b96cd14dd76af6c52.tar.gz"
1415
},
1516
"dependencies": {
1617
"@octokit/rest": "^16.37.0"
17-
},
18-
"ava": {
19-
"files": [
20-
"src/**/__tests__/**/*.js"
21-
],
22-
"babel": {
23-
"extensions": [
24-
"js"
25-
],
26-
"testOptions": {
27-
"presets": [],
28-
"babelrc": false
29-
}
30-
}
3118
}
3219
}

0 commit comments

Comments
 (0)