Skip to content

Commit 7a48b8e

Browse files
committed
test: isomorphic testing
1 parent 4eb20bb commit 7a48b8e

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

package-lock.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"build": "rollup -c rollup.config.ts",
1515
"lint": "eslint ./src/**/*.{ts,vue} ./tests/**/*.{ts,vue}",
1616
"prepare": "npm run build",
17-
"test": "jest"
17+
"test": "npm run test:2 && npm run test:3",
18+
"test:2": "vue-demi-switch 2 vue2 && jest",
19+
"test:3": "vue-demi-switch 3 && jest"
1820
},
1921
"repository": {
2022
"type": "git",
@@ -53,6 +55,7 @@
5355
"@typescript-eslint/eslint-plugin": "^4.16.1",
5456
"@typescript-eslint/parser": "^4.16.1",
5557
"@vue/compiler-sfc": "^3.0.7",
58+
"@vue/composition-api": "^1.0.0-rc.8",
5659
"@vue/eslint-config-prettier": "^6.0.0",
5760
"@vue/eslint-config-typescript": "^7.0.0",
5861
"eslint": "^7.21.0",
@@ -70,6 +73,7 @@
7073
"ts-node": "^9.1.1",
7174
"typescript": "^4.2.3",
7275
"vue": "^3.0.7",
76+
"vue2": "npm:vue@2",
7377
"vue-jest": "^5.0.0-alpha.8"
7478
}
7579
}

0 commit comments

Comments
 (0)