Skip to content

Commit 946533e

Browse files
Merge branch 'main' into rs/shim-require-buffer
2 parents 409354d + 826d708 commit 946533e

File tree

86 files changed

+1591
-968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1591
-968
lines changed

.eslintignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
.next
22
node_modules
3-
test
43
lib
54
demos
65
packages/runtime/src/templates/edge
76
packages/runtime/src/templates/edge-shared
87
packages/runtime/lib
98
packages/runtime/dist-types
10-
jestSetup.js
9+
jestSetup.js
10+
test/e2e
11+
test/fixtures/broken_next_config/next.config.js

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,28 @@ module.exports = {
5959
'promise/catch-or-return': 0,
6060
},
6161
},
62+
{
63+
files: ['test/**', 'packages/**/test/**'],
64+
plugins: ['jest'],
65+
extends: ['plugin:jest/recommended'],
66+
rules: {
67+
// Disable global rules
68+
'max-nested-callbacks': 'off',
69+
'@typescript-eslint/no-empty-function': 0,
70+
'max-lines-per-function': 0,
71+
'unicorn/no-empty-file': 0,
72+
'prefer-destructuring': 0,
73+
'@typescript-eslint/no-unused-vars': 0,
74+
'unicorn/no-await-expression-member': 0,
75+
'import/no-anonymous-default-export': 0,
76+
'no-shadow': 0,
77+
'@typescript-eslint/no-var-requires': 0,
78+
'require-await': 0,
79+
// esling-plugin-jest specific rules
80+
'jest/consistent-test-it': ['error', { fn: 'it', withinDescribe: 'it' }],
81+
'jest/no-disabled-tests': 0,
82+
'jest/no-conditional-expect': 0,
83+
},
84+
},
6285
],
6386
}

.github/workflows/cypress-canary.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ jobs:
1313
cypress:
1414
name: Cypress
1515
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
containers: [1, 2, 3, 4]
2016
steps:
2117
- name: Checkout
2218
uses: actions/checkout@v2
@@ -59,9 +55,7 @@ jobs:
5955
uses: cypress-io/github-action@v5
6056
with:
6157
browser: chrome
62-
headless: true
6358
record: true
64-
parallel: true
6559
config-file: cypress/config/canary.config.ts
6660
group: 'Next Runtime - Demo Canary'
6761
spec: cypress/e2e/canary/*

.github/workflows/cypress-demo-nx.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ jobs:
1313
cypress:
1414
name: Cypress
1515
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
containers: [1, 2, 3, 4]
2016
steps:
2117
- name: Checkout
2218
uses: actions/checkout@v2
@@ -59,9 +55,7 @@ jobs:
5955
uses: cypress-io/github-action@v5
6056
with:
6157
browser: chrome
62-
headless: true
6358
record: true
64-
parallel: true
6559
config-file: cypress/config/nx-demo.config.ts
6660
group: 'Next Runtime - Demo NX'
6761
spec: cypress/e2e/nx/*

.github/workflows/cypress-demo-static.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
containers: [1, 2, 3, 4]
19+
containers: [1, 2]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
@@ -59,7 +59,6 @@ jobs:
5959
uses: cypress-io/github-action@v5
6060
with:
6161
browser: chrome
62-
headless: true
6362
record: true
6463
parallel: true
6564
config-file: cypress/config/static-root.config.ts

.github/workflows/cypress-demo.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
uses: cypress-io/github-action@v5
6060
with:
6161
browser: chrome
62-
headless: true
6362
record: true
6463
parallel: true
6564
config-file: cypress/config/ci.config.ts

.github/workflows/cypress-middleware.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
containers: [1, 2, 3, 4]
19+
containers: [1, 2]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
@@ -59,7 +59,6 @@ jobs:
5959
uses: cypress-io/github-action@v5
6060
with:
6161
browser: chrome
62-
headless: true
6362
record: true
6463
parallel: true
6564
config-file: cypress/config/middleware.config.ts

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ node_modules
2121
lib
2222
tsconfig.json
2323
demos/nx-next-monorepo-demo
24+
test/fixtures/broken_next_config/next.config.js
25+
test/e2e
2426

2527
**/CHANGELOG.md
2628
packages/runtime/lib

cypress/e2e/default/appdir.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('appDir', () => {
2525
},
2626
followRedirect: false,
2727
}).then((response) => {
28-
expect(response.headers).to.have.property('content-type', 'application/octet-stream')
28+
expect(response.headers).to.have.property('content-type', 'text/x-component')
2929
})
3030
})
3131

@@ -58,7 +58,7 @@ describe('appDir', () => {
5858
},
5959
followRedirect: false,
6060
}).then((response) => {
61-
expect(response.headers).to.have.property('content-type', 'application/octet-stream')
61+
expect(response.headers).to.have.property('content-type', 'text/x-component')
6262
})
6363
})
6464

@@ -70,7 +70,7 @@ describe('appDir', () => {
7070
},
7171
followRedirect: false,
7272
}).then((response) => {
73-
expect(response.headers).to.have.property('content-type', 'application/octet-stream')
73+
expect(response.headers).to.have.property('content-type', 'text/x-component')
7474
})
7575
})
7676

demos/base-path/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typescript": "^4.6.3"
1515
},
1616
"dependencies": {
17-
"next": "^13.1.6"
17+
"next": "^13.3.0"
1818
},
1919
"scripts": {
2020
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)