-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Move tests folder * Move remaining folders * Update tanstack/config * Fix knip * Fix include
- Loading branch information
1 parent
6a4f224
commit f159b04
Showing
45 changed files
with
233 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../src/__tests__/createAngularTable.test.ts → ...ar-table/tests/createAngularTable.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...angular-table/src/__tests__/test-setup.ts → packages/angular-table/tests/test-setup.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json", | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"module": "ESNext", | ||
"moduleDetection": "force", | ||
"moduleResolution": "Bundler" | ||
}, | ||
"angularCompilerOptions": { | ||
"enableI18nLegacyMessageIdFormat": false, | ||
"strictInjectionParameters": true, | ||
"strictInputAccessModifiers": true, | ||
"strictTemplates": true, | ||
"compilationMode": "partial" | ||
}, | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import packageJson from './package.json' | ||
|
||
export default defineConfig(({ mode }) => ({ | ||
export default defineConfig({ | ||
test: { | ||
name: packageJson.name, | ||
globals: true, | ||
setupFiles: ['src/__tests__/test-setup.ts'], | ||
dir: './tests', | ||
watch: false, | ||
environment: 'jsdom', | ||
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], | ||
}, | ||
define: { | ||
'import.meta.vitest': mode !== 'production', | ||
setupFiles: ['./tests/test-setup.ts'], | ||
globals: true, | ||
}, | ||
})) | ||
}) |
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...tils/__tests__/match-sorter-utils.test.ts → ...er-utils/tests/match-sorter-utils.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { describe, expect, it } from 'vitest' | ||
import { rankings, rankItem } from '../src' | ||
|
||
interface Person { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@testing-library/jest-dom/vitest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import packageJson from './package.json' | ||
|
||
export default defineConfig({ | ||
test: { | ||
name: packageJson.name, | ||
dir: './tests', | ||
watch: false, | ||
setupFiles: ['test-setup.ts'], | ||
environment: 'jsdom', | ||
globals: true, | ||
dir: '__tests__', | ||
setupFiles: ['./tests/test-setup.ts'], | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../react-table/__tests__/core/core.test.tsx → ...ages/react-table/tests/core/core.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../__tests__/features/RowSelection.test.tsx → ...able/tests/features/RowSelection.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { expect, test } from 'vitest' | ||
import { | ||
ColumnDef, | ||
flexRender, | ||
|
3 changes: 1 addition & 2 deletions
3
...le/__tests__/features/Visibility.test.tsx → ...-table/tests/features/Visibility.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@testing-library/jest-dom/vitest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import packageJson from './package.json' | ||
|
||
export default defineConfig({ | ||
test: { | ||
name: packageJson.name, | ||
dir: './tests', | ||
watch: false, | ||
setupFiles: ['test-setup.ts'], | ||
environment: 'jsdom', | ||
setupFiles: ['./tests/test-setup.ts'], | ||
globals: true, | ||
dir: '__tests__', | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...s/table-core/__tests__/RowPinning.test.ts → packages/table-core/tests/RowPinning.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { describe, expect, it } from 'vitest' | ||
import { | ||
ColumnDef, | ||
createColumnHelper, | ||
|
1 change: 1 addition & 0 deletions
1
...table-core/__tests__/RowSelection.test.ts → ...ges/table-core/tests/RowSelection.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { describe, expect, it } from 'vitest' | ||
import { | ||
ColumnDef, | ||
createColumnHelper, | ||
|
1 change: 1 addition & 0 deletions
1
...core/__tests__/getGroupedRowModel.test.ts → ...ble-core/tests/getGroupedRowModel.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@testing-library/jest-dom/vitest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import packageJson from './package.json' | ||
|
||
export default defineConfig({ | ||
test: { | ||
name: packageJson.name, | ||
dir: './tests', | ||
watch: false, | ||
setupFiles: ['test-setup.ts'], | ||
environment: 'jsdom', | ||
setupFiles: ['./tests/test-setup.ts'], | ||
globals: true, | ||
dir: '__tests__', | ||
}, | ||
}) |
Oops, something went wrong.