@@ -1789,7 +1789,7 @@ describe('onPreDev', () => {
1789
1789
const watcherPath = require . resolve ( '@netlify/plugin-nextjs/lib/helpers/watcher' )
1790
1790
1791
1791
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 ( ) => {
1793
1793
await moveNextDist ( '.next' , true )
1794
1794
await writeFile ( path . join ( process . cwd ( ) , 'middleware.ts' ) , middlewareSourceTs )
1795
1795
@@ -1802,15 +1802,15 @@ describe('the dev middleware watcher', () => {
1802
1802
expect ( output . stdout ) . toContain ( '...done' )
1803
1803
} )
1804
1804
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 ( ) => {
1806
1806
await moveNextDist ( '.next' , true )
1807
1807
const watcher = execa . node ( watcherPath , [ process . cwd ( ) , '--once' ] )
1808
1808
const output = await watcher
1809
1809
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1810
1810
expect ( output . stdout ) . toBe ( 'Initial scan complete. Ready for changes' )
1811
1811
} )
1812
1812
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 ( ) => {
1814
1814
await moveNextDist ( '.next' , true )
1815
1815
await writeFile ( path . join ( process . cwd ( ) , 'middleware.ts' ) , middlewareSourceTs )
1816
1816
expect ( middlewareExists ( ) ) . toBeFalsy ( )
@@ -1846,7 +1846,7 @@ describe('the dev middleware watcher', () => {
1846
1846
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1847
1847
} )
1848
1848
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 ( ) => {
1850
1850
await moveNextDist ( '.next' , true )
1851
1851
const watcher = execa . node ( watcherPath , [ process . cwd ( ) ] )
1852
1852
await wait ( )
@@ -1860,7 +1860,7 @@ describe('the dev middleware watcher', () => {
1860
1860
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1861
1861
} )
1862
1862
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 ( ) => {
1864
1864
await moveNextDist ( '.next' , true )
1865
1865
const watcher = execa . node ( watcherPath , [ process . cwd ( ) ] )
1866
1866
await wait ( )
@@ -1875,7 +1875,7 @@ describe('the dev middleware watcher', () => {
1875
1875
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1876
1876
} )
1877
1877
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 ( ) => {
1879
1879
await moveNextDist ( '.next' , true )
1880
1880
const watcher = execa . node ( watcherPath , [ process . cwd ( ) ] )
1881
1881
await wait ( )
@@ -1889,7 +1889,7 @@ describe('the dev middleware watcher', () => {
1889
1889
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1890
1890
} )
1891
1891
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 ( ) => {
1893
1893
await moveNextDist ( '.next' , true )
1894
1894
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1895
1895
@@ -1903,7 +1903,7 @@ describe('the dev middleware watcher', () => {
1903
1903
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1904
1904
} )
1905
1905
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 ( ) => {
1907
1907
await moveNextDist ( '.next' , true )
1908
1908
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1909
1909
@@ -1915,7 +1915,7 @@ describe('the dev middleware watcher', () => {
1915
1915
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1916
1916
} )
1917
1917
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 ( ) => {
1919
1919
await moveNextDist ( '.next' , true )
1920
1920
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1921
1921
@@ -1929,7 +1929,7 @@ describe('the dev middleware watcher', () => {
1929
1929
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1930
1930
} )
1931
1931
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 ( ) => {
1933
1933
await moveNextDist ( '.next' , true )
1934
1934
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1935
1935
await writeFile ( path . join ( process . cwd ( ) , 'middleware.ts' ) , middlewareSourceTs )
@@ -1944,7 +1944,7 @@ describe('the dev middleware watcher', () => {
1944
1944
expect ( watcher . kill ( ) ) . toBeTruthy ( )
1945
1945
} )
1946
1946
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 ( ) => {
1948
1948
await moveNextDist ( '.next' , true )
1949
1949
expect ( middlewareExists ( ) ) . toBeFalsy ( )
1950
1950
let stdioString = ''
0 commit comments