You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: run C3 e2e tests more easily locally and individually (#9533)
* fix: ensure that the `sourcemap-codec` library has been transformed correctly to be imported in workerd during Vitest runs
Prior to this the inline snapshot tests were failing because they use the `magic-string` library, which in turn relies upon the `sourcemap-codec` library.
This resulted in errors that look like:
```
Error running worker: SyntaxError: The requested module '@jridgewell/sourcemap-codec' does not provide an export named 'encode'
```
* refactor: run C3 e2e tests more easily locally and individually
* fixup! refactor: run C3 e2e tests more easily locally and individually
* move to-exist helper back to setup file
* rename the filtering env vars
* fixup! refactor: run C3 e2e tests more easily locally and individually
* fix c3 e2e ci groups
* remove unnecessary step
* skip gatsby on yarn
* Run windows tests in a normal directory
* skip Workers tests on Windows
* match the previous test descriptions
fix: ensure that the `sourcemap-codec` library has been transformed correctly to be imported in workerd during Vitest runs
6
+
7
+
Prior to this the inline snapshot tests were failing because they use the `magic-string` library, which in turn relies upon the `sourcemap-codec` library.
8
+
9
+
This resulted in errors that look like:
10
+
11
+
```
12
+
Error running worker: SyntaxError: The requested module '@jridgewell/sourcemap-codec' does not provide an export named 'encode'
# rename/copy this file to .env to control the local c3 process
2
2
# (currently used only to control the behavior of the e2es locally)
3
3
4
-
# CLOUDFLARE_API_TOKEN=? # the cloudflare api token needed for the deployment of projects
5
-
# CLOUDFLARE_ACCOUNT_ID=? # the id of the account needed for the deployment of projects
6
-
# FRAMEWORK_CLI_TO_TEST=? # the name of the cli of the _only_ framework to run e2e tests for
7
-
# E2E_PROJECT_PATH=? # the path were to build the projects (for easier debugging, instead of having to find the tmpdir)
8
-
# E2E_RETRIES=0 # the number of retries for framework e2e tests
9
-
# E2E_NO_DEPLOY=true # flag to skip the deployment step in the e2es (for easier debugging, where the deployment is not relevant to current changes)
10
-
# E2E_EXPERIMENTAL=true # flag to run only experimental framework e2e tests
4
+
# CLOUDFLARE_API_TOKEN=? # the cloudflare api token needed for the deployment of projects
5
+
# CLOUDFLARE_ACCOUNT_ID=? # the id of the account needed for the deployment of projects (defaults to the DevProd testing account)
6
+
# E2E_WORKER_TEMPLATE_TO_TEST=hello-world:ts # Run only worker e2e tests that match this pattern
7
+
# E2E_FRAMEWORK_TEMPLATE_TO_TEST=next # Run only framework e2e tests that match this pattern
8
+
# E2E_TEST_PM=npm # the package manager to simulate the e2e tests
9
+
# E2E_PROJECT_PATH=./temp/e2e # a path to where to generate the projects (for easier debugging, instead of having to find the tmpdir)
10
+
# E2E_TEST_RETRIES=0 # the number of retries for framework e2e tests
11
+
# E2E_RUN_DEPLOY_TESTS=false # flag to skip the deployment step in the e2es (for easier debugging, where the deployment is not relevant to current changes)
12
+
# E2E_EXPERIMENTAL=true # flag to run only experimental framework e2e tests
0 commit comments