diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 884eaaf91cf8..7a03285d821e 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -107,9 +107,9 @@ jobs: steps: - uses: actions/checkout@v2 - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - run: cat packages/next/package.json | jq '.resolutions.webpack = "^5.0.0-beta.30"' > package.json.tmp && mv package.json.tmp packages/next/package.json - - run: cat packages/next/package.json | jq '.resolutions.react = "^17.0.0-rc.1"' > package.json.tmp && mv package.json.tmp packages/next/package.json - - run: cat packages/next/package.json | jq '.resolutions."react-dom" = "^17.0.0-rc.1"' > package.json.tmp && mv package.json.tmp packages/next/package.json + - run: cat package.json | jq '.resolutions.webpack = "^5.0.0-beta.30"' > package.json.tmp && mv package.json.tmp package.json + - run: cat package.json | jq '.resolutions.react = "^17.0.0-rc.1"' > package.json.tmp && mv package.json.tmp package.json + - run: cat package.json | jq '.resolutions."react-dom" = "^17.0.0-rc.1"' > package.json.tmp && mv package.json.tmp package.json - run: yarn install --check-files - run: node run-tests.js test/integration/production/test/index.test.js - run: node run-tests.js test/integration/basic/test/index.test.js diff --git a/test/integration/async-modules/test/index.test.js b/test/integration/async-modules/test/index.test.js index 2e6715294322..5a4ba44b6f79 100644 --- a/test/integration/async-modules/test/index.test.js +++ b/test/integration/async-modules/test/index.test.js @@ -101,6 +101,19 @@ function runTests(dev = false) { if (browser) await browser.close() } }) + ;(dev ? it.skip : it)('compiles the source to es5', async () => { + const html = await renderViaHTTP(appPort, '/') + + const appScriptMatch = html.match( + /\/_next\/static\/chunks\/pages\/_app-.+?\.js/ + ) + expect(appScriptMatch).toBeTruthy() + + const appScript = appScriptMatch[0] + const appScriptContent = await renderViaHTTP(appPort, appScript) + expect(appScriptContent).not.toMatch(/async\(\)=>/) + expect(appScriptContent).not.toMatch(/await\s/) + }) } ;(isWebpack5 ? describe : describe.skip)('Async modules', () => {