Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
J-T-McC committed Jun 10, 2024
1 parent 07bcd59 commit c6a5979
Show file tree
Hide file tree
Showing 4 changed files with 6,734 additions and 22 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ on: [push]

jobs:
test:
runs-on: ubuntu-latest

runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [ 20 ]
steps:
- uses: actions/checkout@v4

- name: Install modules
run: yarn
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Run tests
run: yarn test
run: pnpm test

- name: Upload coverage to Coveralls
run: cat ./coverage/lcov.info | yarn coveralls
run: cat ./coverage/lcov.info | pnpm coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
module.exports = {
transform: {
'^.+\\.vue$': 'vue3-jest',
'^.+\\.vue$': '@vue/vue3-jest',
'^.+\\js$': 'babel-jest'
},
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: ["node", "node-addons"],
},
setupFiles: ['jest-canvas-mock'],
collectCoverage: true,
coverageDirectory: 'coverage',
Expand Down
31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,26 @@
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@vitejs/plugin-vue": "^1.1.4",
"@vue/compiler-sfc": "^3.0.5",
"@vitejs/plugin-vue": "^1.10.2",
"@vue/compiler-sfc": "^3.4.27",
"@vue/test-utils": "^2.4.6",
"babel-jest": "^27.0.0",
"chart.js": "^4.0",
"chartjs-plugin-zoom": "^1.0.0-beta.5",
"@vue/vue3-jest": "^28.1.0",
"babel-jest": "^28.1.3",
"chart.js": "^4.4.3",
"chartjs-plugin-zoom": "^1.2.1",
"coveralls": "^3.1.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-vue": "^7.1.0",
"jest": "^v27.0.0-alpha.4",
"jest-canvas-mock": "^2.3.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-vue": "^7.20.0",
"jest": "^28.1.3",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"prettier": "2.2.1",
"vite": "^2.0.1",
"vue": "^3.0.5",
"vue3-jest": "^27.0.0-alpha.1"
"vite": "^2.9.18",
"vue": "^3.4.27"
},
"babel": {
"presets": [
Expand Down
Loading

0 comments on commit c6a5979

Please sign in to comment.