Skip to content

Commit 60c879e

Browse files
authored
chore: run client functional tests in test:functional script (#3523)
* chore: run client functional test in test:functional script * chore: refector test:e2e script
1 parent 462e46f commit 60c879e

File tree

3 files changed

+9
-61
lines changed

3 files changed

+9
-61
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"local-publish": "node ./scripts/verdaccio-publish/index.js",
2929
"test:all": "yarn build:all && jest --coverage --passWithNoTests && lerna run test --scope '@aws-sdk/{fetch-http-handler,hash-blob-browser}' && yarn test:versions",
3030
"test:e2e": "yarn build:e2e && node ./tests/e2e/index.js",
31-
"test:functional": "jest --config tests/functional/jest.config.js",
31+
"test:functional": "jest --config tests/functional/jest.config.js && lerna run test:unit --scope \"@aws-sdk/client-*\"",
3232
"test:integration": "jest --config jest.config.integ.js --passWithNoTests",
3333
"test:integration:legacy": "cucumber-js --fail-fast",
3434
"test:integration:legacy:since:release": "./tests/integ-legacy/index.js",

tests/e2e/index.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
const { getIntegTestResources } = require("./get-integ-test-resources");
2-
const { runE2ETests } = require("./run-e2e-tests");
2+
const execa = require("execa");
33

44
const run = async () => {
55
try {
66
const integTestResourcesEnv = await getIntegTestResources();
7-
await runE2ETests(integTestResourcesEnv);
7+
await execa("yarn", ["lerna", "run", "test:e2e", "--since", "--concurrency", "1"], {
8+
env: {
9+
...integTestResourcesEnv,
10+
...process.env,
11+
},
12+
stdio: "inherit",
13+
});
814
process.exit(0);
915
} catch (e) {
1016
console.error(e);

tests/e2e/run-e2e-tests.js

-58
This file was deleted.

0 commit comments

Comments
 (0)