Skip to content

Commit 5d6a551

Browse files
committed
chore: enable more
1 parent 4dac4a2 commit 5d6a551

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/index.spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ describe('onPreDev', () => {
17891789
const watcherPath = require.resolve('@netlify/plugin-nextjs/lib/helpers/watcher')
17901790

17911791
describe('the dev middleware watcher', () => {
1792-
it('should compile once and exit if run with the --once flag', async () => {
1792+
it.skip('should compile once and exit if run with the --once flag', async () => {
17931793
await moveNextDist('.next', true)
17941794
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
17951795

@@ -1802,15 +1802,15 @@ describe('the dev middleware watcher', () => {
18021802
expect(output.stdout).toContain('...done')
18031803
})
18041804

1805-
it('should not compile anything if there is no middleware', async () => {
1805+
it.skip('should not compile anything if there is no middleware', async () => {
18061806
await moveNextDist('.next', true)
18071807
const watcher = execa.node(watcherPath, [process.cwd(), '--once'])
18081808
const output = await watcher
18091809
expect(middlewareExists()).toBeFalsy()
18101810
expect(output.stdout).toBe('Initial scan complete. Ready for changes')
18111811
})
18121812

1813-
fit('should compile a middleware file and then exit when killed', async () => {
1813+
it('should compile a middleware file and then exit when killed', async () => {
18141814
await moveNextDist('.next', true)
18151815
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
18161816
expect(middlewareExists()).toBeFalsy()
@@ -1846,7 +1846,7 @@ describe('the dev middleware watcher', () => {
18461846
expect(watcher.kill()).toBeTruthy()
18471847
})
18481848

1849-
it('should remove the output if invalid middleware is written after the watcher starts', async () => {
1849+
it.skip('should remove the output if invalid middleware is written after the watcher starts', async () => {
18501850
await moveNextDist('.next', true)
18511851
const watcher = execa.node(watcherPath, [process.cwd()])
18521852
await wait()
@@ -1860,7 +1860,7 @@ describe('the dev middleware watcher', () => {
18601860
expect(watcher.kill()).toBeTruthy()
18611861
})
18621862

1863-
it('should recompile the middleware if it is moved into the src directory after the watcher starts', async () => {
1863+
it.skip('should recompile the middleware if it is moved into the src directory after the watcher starts', async () => {
18641864
await moveNextDist('.next', true)
18651865
const watcher = execa.node(watcherPath, [process.cwd()])
18661866
await wait()
@@ -1875,7 +1875,7 @@ describe('the dev middleware watcher', () => {
18751875
expect(watcher.kill()).toBeTruthy()
18761876
})
18771877

1878-
it('should recompile the middleware if it is moved into the root directory after the watcher starts', async () => {
1878+
it.skip('should recompile the middleware if it is moved into the root directory after the watcher starts', async () => {
18791879
await moveNextDist('.next', true)
18801880
const watcher = execa.node(watcherPath, [process.cwd()])
18811881
await wait()
@@ -1889,7 +1889,7 @@ describe('the dev middleware watcher', () => {
18891889
expect(watcher.kill()).toBeTruthy()
18901890
})
18911891

1892-
it('should compile the middleware if invalid source is replaced with valid source after the watcher starts', async () => {
1892+
it.skip('should compile the middleware if invalid source is replaced with valid source after the watcher starts', async () => {
18931893
await moveNextDist('.next', true)
18941894
expect(middlewareExists()).toBeFalsy()
18951895

@@ -1903,7 +1903,7 @@ describe('the dev middleware watcher', () => {
19031903
expect(watcher.kill()).toBeTruthy()
19041904
})
19051905

1906-
it('should not compile middleware if more than one middleware file exists', async () => {
1906+
it.skip('should not compile middleware if more than one middleware file exists', async () => {
19071907
await moveNextDist('.next', true)
19081908
expect(middlewareExists()).toBeFalsy()
19091909

@@ -1915,7 +1915,7 @@ describe('the dev middleware watcher', () => {
19151915
expect(watcher.kill()).toBeTruthy()
19161916
})
19171917

1918-
it('should not compile middleware if a second middleware file is added after the watcher starts', async () => {
1918+
it.skip('should not compile middleware if a second middleware file is added after the watcher starts', async () => {
19191919
await moveNextDist('.next', true)
19201920
expect(middlewareExists()).toBeFalsy()
19211921

@@ -1929,7 +1929,7 @@ describe('the dev middleware watcher', () => {
19291929
expect(watcher.kill()).toBeTruthy()
19301930
})
19311931

1932-
it('should compile middleware if a second middleware file is removed after the watcher starts', async () => {
1932+
it.skip('should compile middleware if a second middleware file is removed after the watcher starts', async () => {
19331933
await moveNextDist('.next', true)
19341934
expect(middlewareExists()).toBeFalsy()
19351935
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
@@ -1944,7 +1944,7 @@ describe('the dev middleware watcher', () => {
19441944
expect(watcher.kill()).toBeTruthy()
19451945
})
19461946

1947-
it('should generate the correct output for each case when middleware is compiled, added, removed and for error states', async () => {
1947+
it.skip('should generate the correct output for each case when middleware is compiled, added, removed and for error states', async () => {
19481948
await moveNextDist('.next', true)
19491949
expect(middlewareExists()).toBeFalsy()
19501950
let stdioString = ''

0 commit comments

Comments
 (0)