Skip to content

Commit

Permalink
Start planning out acceptance testing
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 21, 2024
1 parent f040d90 commit 8295438
Show file tree
Hide file tree
Showing 11 changed files with 2,415 additions and 50 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,23 @@ jobs:
- run: yarn update && git diff --exit-code

- run: yarn test:coverage --runInBand

acceptance:
runs-on: ${{ matrix.os }}-latest

strategy:
matrix:
os: [ ubuntu, windows ]
node-version: [18.x, 20.x, 21.x]

steps:
- uses: actions/checkout@v4

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

- run: yarn install --frozen-lockfile --non-interactive
- run: yarn vitest
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watchAll",
"test:acceptance": "vitest --config ./tests/acceptance/vitest.config.mjs",
"update": "node ./scripts/update-rules.js && node ./scripts/list-jquery-methods.js && npm-run-all update:eslint-docs",
"update:eslint-docs": "eslint-doc-generator"
},
Expand All @@ -71,7 +72,8 @@
"**/tests/**/*.js"
],
"testPathIgnorePatterns": [
"<rootDir>/tests/helpers/"
"<rootDir>/tests/helpers/",
"<rootDir>/tests/acceptance"
]
},
"dependencies": {
Expand Down Expand Up @@ -108,7 +110,10 @@
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-unicorn": "^51.0.0",
"eslint-remote-tester": "^3.0.1",
"execa": "^9.4.1",
"fixturify-project": "^7.1.2",
"globals": "^14.0.0",
"globby": "^14.0.2",
"jest": "^29.7.0",
"jquery": "^3.7.1",
"jsdom": "^24.0.0",
Expand All @@ -117,9 +122,13 @@
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"release-it": "^17.0.0",
"scenario-tester": "^4.1.1",
"sort-package-json": "^2.6.0",
"tmp-promise": "^3.0.3",
"typescript": "^5.2.2",
"typescript-eslint": "^8.7.0"
"typescript-eslint": "^8.7.0",
"vite": "^5.4.9",
"vitest": "^2.1.3"
},
"peerDependencies": {
"@typescript-eslint/parser": "*",
Expand Down
19 changes: 19 additions & 0 deletions tests/acceptance/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import globals from 'globals';
import n from 'eslint-plugin-n';
import prettier from 'eslint-plugin-prettier/recommended';

export default [
prettier,
n.configs['flat/recommended'],
{
languageOptions: {
globals: {
...globals.node,
},
},
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
},
];
Empty file.
8 changes: 8 additions & 0 deletions tests/acceptance/fixtures/plain-gjs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "fixture-plain-gjs",
"private": true,
"type": "module",
"devDependencies": {
"eslint": "^9.13.0"
}
}
Loading

0 comments on commit 8295438

Please sign in to comment.