Skip to content

Commit

Permalink
fix: Enable new unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Nov 27, 2024
1 parent 55aaf13 commit 94773d9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 135 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ jobs:
cache: 'npm'
- name: Install packages for project
run: npm ci
- name: Run unit tests
run: npm run test
- run: npm run build
- name: Install packages for tests
run: |
cd tests
npm ci
- name: Run tests
- name: Run integration tests
run: |
cd tests
npm run test
133 changes: 5 additions & 128 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"src"
],
"scripts": {
"build": "node scripts/build.cli.js",
"build": "npm run build:clean && node scripts/build.cli.js",
"build:clean": "rm -rf build assets coverage",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm run lint && npm run build",
Expand All @@ -59,8 +60,7 @@
"@diplodoc/translation": "^1.5.0",
"katex": "^0.16.9",
"shelljs": "0.8.5",
"threads": "1.7.0",
"yargs": "17.7.2"
"threads": "1.7.0"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.525.0",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
"lib": ["ES2019"],
"target": "ES2019",
"outDir": "build",
"module": "preserve",
"module": "es2022",
"moduleResolution": "bundler",
"paths": {
"~/*": ["./src/*"]
}
},
"include": ["src"],
"exclude": ["node_modules"],
"types": ["node"]
}
2 changes: 1 addition & 1 deletion vitest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
enabled: true,
provider: 'v8',
include: [
'src/cmd',
'src/commands',
'src/program',
'src/config',
'src/logger',
Expand Down

0 comments on commit 94773d9

Please sign in to comment.