Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit of the spec testing #186

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = datasets,.git,*.pdf,*.svg,deprecated,*.xml,*.mediawiki,*.omn,datasets
ignore-words-list = covert,hed,recuse
ignore-words-list = covert,hed,recuse,afterAll
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,19 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: ./node_modules/.bin/jest --coverage
coverageCommand: ./node_modules/.bin/jest --coverage --testPathIgnorePatterns=spec_tests

SpecTests:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Set up with Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Download dependencies
run: npm ci
- name: Test with Node.js LTS
run: npm run testSpecs
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ node_modules
.idea
dist/
/venv/
spec_tests/
spec_tests/*.txt
spec_tests/temp*.json

# Unit test / coverage reports
htmlcov/
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"build": "node esbuild.mjs",
"prepublishOnly": "npm run build",
"lint": "eslint ./**/*.js",
"test": "jest",
"coverage": "jest --coverage",
"test": "jest --testPathIgnorePatterns=spec_tests",
"testSpecs": "jest --silent --noStackTrace spec_tests/jsonTests.spec.js",
"coverage": "jest --coverage --testPathIgnorePatterns=spec_tests/*",
"prepare": "husky install"
},
"contributors": [
Expand Down
Loading
Loading