Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Oct 22, 2021
1 parent 1615f6c commit 37ad750
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions test/integration/production/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-env jest */
/* global browserName */
import os from 'os'
import cheerio from 'cheerio'
import fs, { existsSync } from 'fs-extra'
import globOriginal from 'glob'
Expand Down Expand Up @@ -94,13 +93,13 @@ describe('Production Usage', () => {
file.includes('next/dist/server/load-components.js')
)
).toBe(true)
expect(
serverTrace.files.some((file) =>
file.includes('next/dist/compiled/webpack/bundle5.js')
)
).toBe(false)

if (os.platform() !== 'win32') {
if (process.platform !== 'win32') {
expect(
serverTrace.files.some((file) =>
file.includes('next/dist/compiled/webpack/bundle5.js')
)
).toBe(false)
expect(
serverTrace.files.some((file) => file.includes('node_modules/sharp'))
).toBe(false)
Expand Down
2 changes: 1 addition & 1 deletion test/production/required-server-files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('should set-up next', () => {
})

const nextServerTraceFiles = nextServerTrace.files.map((file) => {
return join(next.testDir, '.next/', file)
return join(next.testDir, '.next', file)
})

for (const file of allFiles) {
Expand Down

0 comments on commit 37ad750

Please sign in to comment.