-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove turbo from test orchestration (#6615)
* test: remove turbo from test orchestration * test(client-s3): build browser bundle for test
- Loading branch information
Showing
13 changed files
with
174 additions
and
24 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
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
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,9 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
exclude: ["**/*/node_modules/**/*.spec.ts"], | ||
include: ["**/*.browser.e2e.spec.ts"], | ||
environment: "happy-dom", | ||
}, | ||
}); |
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 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
exclude: ["**/*/node_modules/**/*.spec.ts"], | ||
include: [ | ||
"packages/util-user-agent-browser/src/index.spec.ts", | ||
"packages/util-user-agent-browser/src/index.native.spec.ts", | ||
"packages/credential-provider-cognito-identity/src/localStorage-inmemoryStorage.spec.ts", | ||
"packages/body-checksum-browser/src/index.spec.ts", | ||
"packages/middleware-websocket/src/get-event-signing-stream.spec.ts", | ||
"packages/middleware-websocket/src/EventStreamPayloadHandler.spec.ts", | ||
"packages/credential-provider-cognito-identity/src/localStorage.spec.ts", | ||
], | ||
environment: "happy-dom", | ||
}, | ||
}); |
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,9 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
exclude: ["**/*/node_modules/**/*.spec.ts", "**/*.{integ,e2e,browser}.spec.ts"], | ||
include: ["clients/client-*/**/*.spec.ts"], | ||
environment: "node", | ||
}, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
exclude: [ | ||
"**/*/node_modules/**/*.spec.ts", | ||
"**/*.{integ,e2e,browser}.spec.ts", | ||
"private/aws-restjson-server/**/*.spec.ts", | ||
"private/aws-restjson-validation-server/**/*.spec.ts", | ||
], | ||
include: ["private/**/*.spec.ts"], | ||
environment: "node", | ||
globals: true, | ||
}, | ||
}); |
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,41 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
/** | ||
* AWS SDK for JavaScript test classifications: | ||
* | ||
* Unit tests are test scenarios that exercise a single functionality. | ||
* Ideally, all modules other than the one being tested should be mocked. | ||
* However, pragmiatically speaking this isn't always the case. | ||
* Unit tests never communicate with AWS services. | ||
* | ||
* Integration tests involve minimal mocking and test multiple modules | ||
* in concert. The test should use the public interfaces of our modules. | ||
* Integration tests never communicate with AWS services. | ||
* | ||
* E2E tests use only the public interfaces of our code and do | ||
* communicate with AWS services. No mocking is done for E2E tests. | ||
* The tests run with cucumber-js are | ||
* now considered E2E tests in this classification system. | ||
* | ||
* Browser tests are a separate category, require alternate configuration, | ||
* and may be classified as unit or e2e tests. | ||
*/ | ||
export default defineConfig({ | ||
test: { | ||
exclude: [ | ||
"node_modules", | ||
"**/*/node_modules/**/*.spec.ts", | ||
"**/*.{integ,e2e,browser}.spec.ts", | ||
"private/aws-restjson-server/**/*.spec.ts", | ||
"private/aws-restjson-validation-server/**/*.spec.ts", | ||
"packages/signature-v4-crt/**/*.spec.ts", | ||
"packages/types/**/*.ts", | ||
"packages/util-user-agent-browser/src/index.spec.ts", | ||
"packages/util-user-agent-browser/src/index.native.spec.ts", | ||
"packages/credential-provider-cognito-identity/src/localStorage-inmemoryStorage.spec.ts", | ||
"packages/body-checksum-browser/src/index.spec.ts", | ||
"packages/middleware-websocket/src/get-event-signing-stream.spec.ts", | ||
"packages/middleware-websocket/src/EventStreamPayloadHandler.spec.ts", | ||
"packages/credential-provider-cognito-identity/src/localStorage.spec.ts", | ||
], | ||
include: ["clients/client-*/**/*.spec.ts", "lib/**/*.spec.ts", "packages/**/*.spec.ts", "private/**/*.spec.ts"], | ||
include: ["lib/**/*.spec.ts", "packages/**/*.spec.ts"], | ||
environment: "node", | ||
globals: true, | ||
}, | ||
}); |