Skip to content

Commit

Permalink
use legacy in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Dec 17, 2024
1 parent 5fb9132 commit 95940bb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ cloud-function/**/*.js
filecheck/*.js
mdn/content/
tool/*.js
bins/*.mjs
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
ENV_FILE: .env.testing
run: |
yarn build:prepare
yarn build
yarn build:legacy
yarn render:html
yarn start:static-server > /tmp/stdout.log 2> /tmp/stderr.log &
Expand Down
2 changes: 1 addition & 1 deletion scripts/testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "----------------------"
export ENV_FILE=".env.testing"

yarn build:prepare
yarn build
yarn build:legacy
yarn render:html

nohup yarn start:static-server > testing.log 2>&1 &
Expand Down
2 changes: 1 addition & 1 deletion testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To run these tests, first run:
```sh
export ENV_FILE=.env.testing
yarn build:prepare
yarn build
yarn build:legacy
yarn render:html
yarn start:static-server
```
Expand Down
2 changes: 1 addition & 1 deletion testing/scripts/functional-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
export ENV_FILE=.env.testing

yarn build:prepare
yarn build
yarn build:legacy
yarn render:html

yarn test:testing $@
4 changes: 2 additions & 2 deletions testing/tests/destructive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe("fixing flaws", () => {

it("can be run in dry-run mode", () => {
const root = path.join(tempContentDir, "files");
const stdout = execSync("yarn build", {
const stdout = execSync("yarn build:legacy", {
cwd: baseDir,
windowsHide: true,
env: Object.assign(
Expand Down Expand Up @@ -130,7 +130,7 @@ describe("fixing flaws", () => {
});

it("can actually change the files", () => {
const stdout = execSync("yarn build", {
const stdout = execSync("yarn build:legacy", {
cwd: baseDir,
windowsHide: true,
env: Object.assign(
Expand Down

0 comments on commit 95940bb

Please sign in to comment.