Skip to content

Commit 75181f7

Browse files
committed
chore: re-enable tests
1 parent bd8bf3d commit 75181f7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/index.spec.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ const killProcess = (process) =>
17961796
})
17971797

17981798
describe('the dev middleware watcher', () => {
1799-
it.skip('should compile once and exit if run with the --once flag', async () => {
1799+
it('should compile once and exit if run with the --once flag', async () => {
18001800
await moveNextDist('.next', true)
18011801
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
18021802

@@ -1809,7 +1809,7 @@ describe('the dev middleware watcher', () => {
18091809
expect(output.stdout).toContain('...done')
18101810
})
18111811

1812-
it.skip('should not compile anything if there is no middleware', async () => {
1812+
it('should not compile anything if there is no middleware', async () => {
18131813
await moveNextDist('.next', true)
18141814
const watcher = execa.node(watcherPath, [process.cwd(), '--once'])
18151815
const output = await watcher
@@ -1856,7 +1856,7 @@ describe('the dev middleware watcher', () => {
18561856
expect(watcher.killed).toBeTruthy()
18571857
})
18581858

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

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

1890-
it.skip('should recompile the middleware if it is moved into the root directory after the watcher starts', async () => {
1890+
it('should recompile the middleware if it is moved into the root directory after the watcher starts', async () => {
18911891
await moveNextDist('.next', true)
18921892
const watcher = execa.node(watcherPath, [process.cwd()])
18931893
await wait()
@@ -1902,7 +1902,7 @@ describe('the dev middleware watcher', () => {
19021902
expect(watcher.killed).toBeTruthy()
19031903
})
19041904

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

@@ -1917,7 +1917,7 @@ describe('the dev middleware watcher', () => {
19171917
expect(watcher.killed).toBeTruthy()
19181918
})
19191919

1920-
it.skip('should not compile middleware if more than one middleware file exists', async () => {
1920+
it('should not compile middleware if more than one middleware file exists', async () => {
19211921
await moveNextDist('.next', true)
19221922
expect(middlewareExists()).toBeFalsy()
19231923

@@ -1930,7 +1930,7 @@ describe('the dev middleware watcher', () => {
19301930
expect(watcher.killed).toBeTruthy()
19311931
})
19321932

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

@@ -1945,7 +1945,7 @@ describe('the dev middleware watcher', () => {
19451945
expect(watcher.killed).toBeTruthy()
19461946
})
19471947

1948-
it.skip('should compile middleware if a second middleware file is removed after the watcher starts', async () => {
1948+
it('should compile middleware if a second middleware file is removed after the watcher starts', async () => {
19491949
await moveNextDist('.next', true)
19501950
expect(middlewareExists()).toBeFalsy()
19511951
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
@@ -1961,7 +1961,7 @@ describe('the dev middleware watcher', () => {
19611961
expect(watcher.killed).toBeTruthy()
19621962
})
19631963

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

0 commit comments

Comments
 (0)