Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore: migrateintegration-tests
fromjest
tovitest
#10778
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
8725a18
010f39e
7386ded
c4e8bbb
487c80d
8bca77c
26cde72
3cb652d
530039c
d470828
487271f
39e3eb6
5529d48
c821137
6eea50b
6f44100
47971cd
4ac2aba
aeaab08
f543444
59f3be5
d56610e
d4cd6f6
735f3b0
046ef20
94d08d0
9871b35
57d699b
936b603
6067c14
3644c1c
67ca16a
b5cae28
d73f172
16429f3
bb33d08
5839e09
ec002c1
dc90e87
5202a7e
b23c42d
4a09a2d
c2411a7
308e3ba
977ca54
9da04c0
4d4b731
59482bc
09958c9
b802e16
e000051
03b251f
5ea2722
03a9ddc
1ad683c
c381351
85871ec
1472976
6ccbe2a
9e8eeb4
578d215
24ab0be
3aada33
67e80df
bb7e02e
3f8d5fb
e62aa0a
b770af7
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -31,12 +31,15 @@ const restrictNamedDeclarations = { | ||
const vitestFiles = [ | ||
'packages/eslint-plugin-internal/tests/**/*.test.{ts,tsx,cts,mts}', | ||
'packages/integration-tests/tests/**/*.test.{ts,tsx,cts,mts},', | ||
aryaemami59 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
'packages/integration-tests/tools/integration-test-base.ts', | ||
'packages/integration-tests/tools/pack-packages.ts', | ||
'packages/parser/tests/lib/**/*.test.{ts,tsx,cts,mts}', | ||
'packages/parser/tests/test-utils/**/*.{ts,tsx,cts,mts}', | ||
'packages/type-utils/tests/**/*.test.{ts,tsx,cts,mts}', | ||
'packages/typescript-eslint/tests/**/*.test.{ts,tsx,cts,mts}', | ||
'packages/utils/tests/**/*.test?(-d).{ts,tsx,cts,mts}', | ||
'packages/visitor-keys/tests/**/*.test.{ts,tsx,cts,mts}', | ||
]; | ||
aryaemami59 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
export default tseslint.config( | ||
@@ -390,8 +393,6 @@ export default tseslint.config( | ||
files: [ | ||
'packages/*/tests/**/*.test.{ts,tsx,cts,mts}', | ||
'packages/*/tests/**/test.{ts,tsx,cts,mts}', | ||
], | ||
ignores: vitestFiles, | ||
rules: { | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
{ | ||
"name": "integration-tests", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"root": "packages/integration-tests", | ||
"sourceRoot": "packages/integration-tests/tools", | ||
"implicitDependencies": ["typescript-eslint"], | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/vite:test" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import * as fs from 'node:fs/promises'; | ||
import * as path from 'node:path'; | ||
import { execFile, FIXTURES_DESTINATION_DIR } from './pack-packages.js'; | ||
// make sure thatvitest doesn't timeout the test | ||
vi.setConfig({ testTimeout:60_000 }); | ||
Comment on lines +6 to +7 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. We could just move this into | ||
function integrationTest( | ||
testName: string, | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.