Skip to content

Commit

Permalink
clean the build before starting
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Feb 8, 2022
1 parent d62d19b commit 4df1cb0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -9,14 +9,15 @@ import { nextBuild } from './utils'

export default function (context) {
it('should not generate functions manifest when filesystem API is not enabled', async () => {
// Make sure there is no existing functions manifest (caused by failed tests etc).
await fs.remove(join(context.appDir, '.next'))
await nextBuild(context.appDir)
const functionsManifestPath = join(
context.distDir,
'server',
'functions-manifest.json'
)
expect(fs.existsSync(functionsManifestPath)).toBe(false)
await fs.remove(join(context.appDir, '.next'))
})
it('should contain rsc paths in functions manifest', async () => {
await nextBuild(context.appDir, { env: { ENABLE_FILE_SYSTEM_API: '1' } })
Expand Down

0 comments on commit 4df1cb0

Please sign in to comment.