Skip to content

Commit 4e89a33

Browse files
committed
chore: don't run disabled tests
1 parent 1234cfd commit 4e89a33

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/e2e-next.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
name: Get test files
1919
# Extracts the list of all test files as JSON and trims to be relative to the test dir to be easier to read
2020
run:
21-
# echo "test-files=$(npx jest -c test/e2e/jest.config.js --listTests --json | jq -cM 'map(.[env.PWD | length +
22-
# 10:])')" >> $GITHUB_OUTPUT
23-
echo "test-files=$(npx jest -c test/e2e/jest.config.all.js --listTests --json | jq -cM 'map(.[env.PWD | length
24-
+ 10:])')" >> $GITHUB_OUTPUT
21+
echo "test-files=$(npx jest -c test/e2e/jest.config.js --listTests --json | jq -cM 'map(.[env.PWD | length +
22+
10:])')" >> $GITHUB_OUTPUT
23+
# echo "test-files=$(npx jest -c test/e2e/jest.config.all.js --listTests --json | jq -cM 'map(.[env.PWD | length
24+
# + 10:])')" >> $GITHUB_OUTPUT
2525

2626
test:
2727
runs-on: ubuntu-latest
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_BOT_AUTH_TOKEN }}
4343
NETLIFY_SITE_ID: 1d5a5c76-d445-4ae5-b694-b0d3f2e2c395
44-
RUN_SKIPPED_TESTS: true
44+
# RUN_SKIPPED_TESTS: true
4545

4646
- uses: actions/upload-artifact@v3
4747
# upload test results

test/e2e/modified-tests/edge-can-read-request-body/index.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ describe('Edge can read request body', () => {
2727
const html = await renderViaHTTP(next.url, '/api/nothing')
2828
expect(html).toContain('ok')
2929
})
30-
// NTL Fail
31-
;(process.env.RUN_SKIPPED_TESTS ? describe : describe.skip)('middleware', () => {
30+
31+
describe('middleware', () => {
3232
it('reads a JSON body', async () => {
3333
const response = await fetchViaHTTP(next.url, '/api/nothing?middleware-handler=json', null, {
3434
method: 'POST',

0 commit comments

Comments
 (0)