Skip to content

Commit

Permalink
fix: update test response, fix path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tinfoil-knight authored and danez committed Jan 3, 2023
1 parent 00f6ef2 commit 72f5685
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/commands/dev/dev.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
import events from 'events'
import path from 'path'
import process from 'process'

import fastifyStatic from '@fastify/static'
Expand Down Expand Up @@ -56,7 +57,7 @@ const netlifyBuildPromise = import('@netlify/build')
const startStaticServer = async ({ settings }) => {
const server = Fastify()
server.register(fastifyStatic, {
root: settings.dist,
root: path.resolve(settings.dist),
// eslint-disable-next-line no-unused-vars
setHeaders: (res, _path, _stat) => {
res.setHeader('X-Powered-by', 'netlify-dev')
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/100.command.dev.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ test('should detect deleted edge functions', async (t) => {
)

t.is(authResponseMessage, 'Auth response')
t.is(authNotFoundMessage, 'Not Found')
t.is(authNotFoundMessage, '404 Not Found')
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/500.command.dev.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ test('should handle form submission with a background function', async (t) => {
})
})

test.only('should not handle form submission when content type is `text/plain`', async (t) => {
test('should not handle form submission when content type is `text/plain`', async (t) => {
await withSiteBuilder('site-with-form-text-plain', async (builder) => {
builder
.withContentFile({
Expand Down

0 comments on commit 72f5685

Please sign in to comment.