-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate e2e and integration test scripts (#55)
Requirement: separate e2e and integration test scripts. Tests: - Unit (15 tests) <img width="823" alt="image" src="https://github.com/alchemyplatform/aa-sdk/assets/43521356/25f3c843-385a-4d0e-87a4-e85e3808b052"> - E2E (26 tests) <img width="725" alt="image" src="https://github.com/alchemyplatform/aa-sdk/assets/43521356/6a9cd8b0-a707-492e-804d-ec3c1e573a64"> <!-- start pr-codex --> --- ## PR-Codex overview ### Focus of this PR: This PR focuses on adding e2e test configurations for different packages and updating the test script in the package.json file. ### Detailed summary: - Deleted `vitest.config.ts` and `vitest.workspace.ts` files. - Updated the `test:run` script in the `package.json` file for the `core`, `ethers`, `accounts`, and `alchemy` packages. - Added `vitest.config.e2e.ts` files for the `core`, `ethers`, `accounts`, and `alchemy` packages. - Updated the `test` script in the `package.json` file to run tests using `lerna run test:run`. - Added `test:e2e` script in the `package.json` file to run end-to-end tests. - Added e2e test configurations in the `vitest.config.e2e.ts` files for the `core`, `ethers`, `accounts`, and `alchemy` packages. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
1 parent
5b6cbb2
commit 252b5c7
Showing
15 changed files
with
66 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/__tests__/**/*.test.ts"], | ||
name: "accounts", | ||
}, | ||
}); |
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,9 +1,11 @@ | ||
import { defineProject } from "vitest/config"; | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/e2e-tests/**/*.test.ts"], | ||
name: "accounts", | ||
}, | ||
}); |
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,11 @@ | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/__tests__/**/*.test.ts"], | ||
name: "aa-alchemy", | ||
}, | ||
}); |
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,9 +1,11 @@ | ||
import { defineProject } from "vitest/config"; | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/e2e-tests/**/*.test.ts"], | ||
name: "aa-alchemy", | ||
}, | ||
}); |
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,11 @@ | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/__tests__/**/*.test.ts"], | ||
name: "core", | ||
}, | ||
}); |
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,9 +1,11 @@ | ||
import { defineProject } from "vitest/config"; | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/e2e-tests/**/*.test.ts"], | ||
name: "core", | ||
}, | ||
}); |
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,11 @@ | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/__tests__/**/*.test.ts"], | ||
name: "ethers", | ||
}, | ||
}); |
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,9 +1,11 @@ | ||
import { defineProject } from "vitest/config"; | ||
import { configDefaults, defineProject } from "vitest/config"; | ||
|
||
export default defineProject({ | ||
test: { | ||
singleThread: true, | ||
globals: true, | ||
setupFiles: ["../../.vitest/setupTests.ts"], | ||
exclude: [...configDefaults.exclude, "**/e2e-tests/**/*.test.ts"], | ||
name: "ethers", | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.