Skip to content
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
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ jobs:
run: pnpm install

- name: Check Tests
run: pnpm test:js:coverage

- name: Build
run: pnpm build
run: pnpm test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: pnpm build

- name: Check Tests
run: pnpm test:js:coverage
run: pnpm test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
16 changes: 0 additions & 16 deletions config/getJestJsProjectConfig.js

This file was deleted.

33 changes: 0 additions & 33 deletions config/getJestProjectConfig.js

This file was deleted.

21 changes: 0 additions & 21 deletions config/getJestTsProjectConfig.js

This file was deleted.

20 changes: 0 additions & 20 deletions config/getTestMatch.js

This file was deleted.

45 changes: 0 additions & 45 deletions config/jestConfig.js

This file was deleted.

3 changes: 0 additions & 3 deletions config/projectRoot.js

This file was deleted.

44 changes: 22 additions & 22 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import js from '@eslint/js';
import tsEslint from 'typescript-eslint';
import tsEslintParser from '@typescript-eslint/parser';
//import vitest from 'eslint-plugin-vitest';
import vitest from 'eslint-plugin-vitest';
import eslintImport from 'eslint-plugin-import';
import { fixupPluginRules } from '@eslint/compat';

Expand Down Expand Up @@ -196,25 +196,25 @@ export default tsEslint.config(
},
},
},
// {
// files: ['**/*.spec.ts'],
// plugins: {
// vitest
// },
// rules: {
// ...vitest.configs.recommended.rules,
// ...vitest.configs.all.rules,
// '@typescript-eslint/unbound-method': 'off',
// '@typescript-eslint/no-confusing-void-expression': 'off',
// '@typescript-eslint/no-empty-function': "off",
// '@typescript-eslint/no-magic-numbers': 'off',
// '@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
// 'vitest/consistent-test-filename': 'off',
// 'vitest/max-expects': 'off',
// 'vitest/no-hooks': 'off',
// 'vitest/prefer-expect-assertions': 'off',
// 'vitest/prefer-strict-equal': 'error',
// 'vitest/valid-title': 'off',
// },
// },
{
files: ['**/*.spec.ts'],
plugins: {
vitest
},
rules: {
...vitest.configs.recommended.rules,
...vitest.configs.all.rules,
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-empty-function': "off",
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'vitest/consistent-test-filename': 'off',
'vitest/max-expects': 'off',
'vitest/no-hooks': 'off',
'vitest/prefer-expect-assertions': 'off',
'vitest/prefer-strict-equal': 'error',
'vitest/valid-title': 'off',
},
},
);
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions jest.js.config.js

This file was deleted.

23 changes: 9 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,22 @@
"url": "https://github.com/adrianmjim/nestjs-supabase-js/issues"
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@eslint/compat": "1.2.1",
"@eslint/js": "9.13.0",
"@types/node": "20.16.15",
"@typescript-eslint/eslint-plugin": "8.11.0",
"@typescript-eslint/parser": "8.11.0",
"@eslint/compat": "1.2.1",
"@eslint/js": "9.13.0",
"@vitest/coverage-v8": "2.1.3",
"eslint": "9.13.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-prettier": "5.2.1",
"jest": "29.7.0",
"eslint-plugin-vitest": "^0.5.4",
"prettier": "3.3.3",
"rimraf": "6.0.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.6.3",
"typescript-eslint": "8.11.0"
"typescript-eslint": "8.11.0",
"vitest": "2.1.3"
},
"peerDependencies": {
"@nestjs/common": "^10.2.7 || ^9.4.0",
Expand All @@ -63,11 +61,8 @@
"lint": "eslint ./src",
"prebuild": "pnpm run build:clean",
"publish:package": "pnpm publish",
"test": "jest --config=jest.config.js",
"test:integration:js": "pnpm run test:js --selectProjects Integration",
"test:js": "jest --config=jest.js.config.js",
"test:js:coverage": "pnpm run test:js --coverage",
"test:uncommitted": "pnpm run test --changedSince=HEAD",
"test:unit:js": "pnpm run test:js --selectProjects Unit"
"test": "TZ=$npm_package_config_TZ vitest run",
"test:coverage": "pnpm run test --coverage",
"test:uncommitted": "pnpm run test --changed HEAD"
}
}
Loading