forked from aws/aws-sdk-js-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.cross-platform.e2e.mts
More file actions
35 lines (34 loc) · 1.09 KB
/
Copy pathvitest.config.cross-platform.e2e.mts
File metadata and controls
35 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from "vitest/config";
/**
* This set differs from browser e2e tests in that tests are shared
* with Node.js e2e tests.
*/
export default defineConfig({
resolve: {
conditions: ["browser", "module", "import", "default"],
mainFields: ["browser", "module", "main"],
},
test: {
exclude: [
"**/*/node_modules/**/*.spec.ts",
"node_modules",
// doesn't support OPTIONS preflight.
"clients/client-data-pipeline/**/*.e2e.spec.ts",
// blocked by CORS policy.
"clients/client-s3-control/test/s3-control-features.e2e.spec.ts",
// is specifically a Node.js HTTP2 test.
"clients/client-kinesis/test/Kinesis.e2e.spec.ts",
// S3 has a different browser testing setup.
"clients/client-s3/**/*.e2e.spec.ts",
// requires Node.js.
"clients/client-cognito-identity/test/e2e/CognitoIdentity.e2e.spec.ts",
],
include: ["**/*.browser.e2e.spec.ts", "clients/**/*.e2e.spec.ts"],
environment: "happy-dom",
setupFiles: ["./vitest.browser.setup.mts"],
retry: {
count: 4,
delay: 20000,
},
},
});