Skip to content

Commit

Permalink
Fix functions manifest test (#34092)
Browse files Browse the repository at this point in the history
We should remove `.next` after checking the manifest file here.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
  • Loading branch information
shuding committed Feb 8, 2022
1 parent 451dfa1 commit dd7962d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -9,14 +9,16 @@ 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'
)
await fs.remove(join(context.appDir, '.next'))
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 dd7962d

Please sign in to comment.