@@ -1796,7 +1796,7 @@ const killProcess = (process) =>
1796
1796
} )
1797
1797
1798
1798
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 ( ) => {
1800
1800
await moveNextDist ( '.next' , true )
1801
1801
await writeFile ( path . join ( process . cwd ( ) , 'middleware.ts' ) , middlewareSourceTs )
1802
1802
@@ -1809,7 +1809,7 @@ describe('the dev middleware watcher', () => {
1809
1809
expect ( output . stdout ) . toContain ( '...done' )
1810
1810
} )
1811
1811
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 ( ) => {
1813
1813
await moveNextDist ( '.next' , true )
1814
1814
const watcher = execa . node ( watcherPath , [ process . cwd ( ) , '--once' ] )
1815
1815
const output = await watcher
@@ -1856,7 +1856,7 @@ describe('the dev middleware watcher', () => {
1856
1856
expect ( watcher . killed ) . toBeTruthy ( )
1857
1857
} )
1858
1858
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 ( ) => {
1860
1860
await moveNextDist ( '.next' , true )
1861
1861
const watcher = execa . node ( watcherPath , [ process . cwd ( ) ] )
1862
1862
await wait ( )
@@ -1871,7 +1871,7 @@ describe('the dev middleware watcher', () => {
1871
1871
expect ( watcher . killed ) . toBeTruthy ( )
1872
1872
} )
1873
1873
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 ( ) => {
1875
1875
await moveNextDist ( '.next' , true )
1876
1876
const watcher = execa . node ( watcherPath , [ process . cwd ( ) ] )
1877
1877
await wait ( )
@@ -1887,7 +1887,7 @@ describe('the dev middleware watcher', () => {
1887
1887
expect ( watcher . killed ) . toBeTruthy ( )
1888
1888
} )
1889
1889
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 ( ) => {
1891
1891
await moveNextDist ( '.next' , true )
1892
1892
const watcher = execa . node ( watcherPath , [ process . cwd ( ) ] )
1893
1893
await wait ( )
@@ -1902,7 +1902,7 @@ describe('the dev middleware watcher', () => {
1902
1902
expect ( watcher . killed ) . toBeTruthy ( )
1903
1903
} )
1904
1904
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 ( ) => {
1906
1906
await moveNextDist ( '.next' , true )
1907
1907
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1908
1908
@@ -1917,7 +1917,7 @@ describe('the dev middleware watcher', () => {
1917
1917
expect ( watcher . killed ) . toBeTruthy ( )
1918
1918
} )
1919
1919
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 ( ) => {
1921
1921
await moveNextDist ( '.next' , true )
1922
1922
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1923
1923
@@ -1930,7 +1930,7 @@ describe('the dev middleware watcher', () => {
1930
1930
expect ( watcher . killed ) . toBeTruthy ( )
1931
1931
} )
1932
1932
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 ( ) => {
1934
1934
await moveNextDist ( '.next' , true )
1935
1935
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1936
1936
@@ -1945,7 +1945,7 @@ describe('the dev middleware watcher', () => {
1945
1945
expect ( watcher . killed ) . toBeTruthy ( )
1946
1946
} )
1947
1947
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 ( ) => {
1949
1949
await moveNextDist ( '.next' , true )
1950
1950
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1951
1951
await writeFile ( path . join ( process . cwd ( ) , 'middleware.ts' ) , middlewareSourceTs )
@@ -1961,7 +1961,7 @@ describe('the dev middleware watcher', () => {
1961
1961
expect ( watcher . killed ) . toBeTruthy ( )
1962
1962
} )
1963
1963
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 ( ) => {
1965
1965
await moveNextDist ( '.next' , true )
1966
1966
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1967
1967
let stdioString = ''
0 commit comments