Commit c1edac79 authored by JJ Kasper's avatar JJ Kasper

update chunking tests

parent 05b972b8
......@@ -111,11 +111,11 @@ describe('Middleware Runtime trailing slash', () => {
)
expect(manifest.middleware).toEqual({
'/': {
files: [
files: expect.arrayContaining([
'prerender-manifest.js',
'server/edge-runtime-webpack.js',
'server/middleware.js',
],
]),
name: 'middleware',
page: '/',
matchers: [{ regexp: '^/.*$', originalSource: '/:path*' }],
......
......@@ -187,10 +187,10 @@ describe('Switchable runtime', () => {
expect(manifest).toMatchObject({
functions: {
'/api/hello': {
files: [
files: expect.arrayContaining([
'server/edge-runtime-webpack.js',
'server/pages/api/hello.js',
],
]),
name: 'pages/api/hello',
page: '/api/hello',
matchers: [
......@@ -199,10 +199,10 @@ describe('Switchable runtime', () => {
wasm: [],
},
'/api/edge': {
files: [
files: expect.arrayContaining([
'server/edge-runtime-webpack.js',
'server/pages/api/edge.js',
],
]),
name: 'pages/api/edge',
page: '/api/edge',
matchers: [
......@@ -621,11 +621,11 @@ describe('Switchable runtime', () => {
expect(manifest).toMatchObject({
functions: {
'/api/hello': {
files: [
files: expect.arrayContaining([
'prerender-manifest.js',
'server/edge-runtime-webpack.js',
'server/pages/api/hello.js',
],
]),
name: 'pages/api/hello',
page: '/api/hello',
matchers: [
......@@ -634,11 +634,11 @@ describe('Switchable runtime', () => {
wasm: [],
},
'/api/edge': {
files: [
files: expect.arrayContaining([
'prerender-manifest.js',
'server/edge-runtime-webpack.js',
'server/pages/api/edge.js',
],
]),
name: 'pages/api/edge',
page: '/api/edge',
matchers: [
......
......@@ -50,11 +50,6 @@ describe('build trace with extra entries', () => {
expect(appTrace.files.some((file) => file.endsWith('hello.json'))).toBe(
true
)
expect(
appTrace.files.filter(
(file) => file.includes('chunks') && file.endsWith('.js')
).length
).toBe(0)
expect(
indexTrace.files.filter(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment