Skip to content

Commit 713a740

Browse files
committed
chore: removed console.logs that were for debugging
1 parent 3d26c71 commit 713a740

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/index.spec.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,6 @@ describe('the dev middleware watcher', () => {
18431843
watchers.push(watcher)
18441844
await isReady
18451845
expect(middlewareExists()).toBeTruthy()
1846-
console.log('done should compile a middleware file and then exit when killed')
18471846
})
18481847

18491848
it.skip('should compile a file if it is written after the watcher starts', async () => {
@@ -1857,7 +1856,6 @@ describe('the dev middleware watcher', () => {
18571856
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
18581857
await isBuilt
18591858
expect(middlewareExists()).toBeTruthy()
1860-
console.log('done should compile a file if it is written after the watcher starts')
18611859
})
18621860

18631861
it.skip('should remove the output if the middleware is removed after the watcher starts', async () => {
@@ -1875,7 +1873,6 @@ describe('the dev middleware watcher', () => {
18751873
await unlink(path.join(process.cwd(), 'middleware.ts'))
18761874
await isBuilt
18771875
expect(middlewareExists()).toBeFalsy()
1878-
console.log('done should remove the output if the middleware is removed after the watcher starts')
18791876
})
18801877

18811878
it.skip('should remove the output if invalid middleware is written after the watcher starts', async () => {
@@ -1893,7 +1890,6 @@ describe('the dev middleware watcher', () => {
18931890
await writeFile(path.join(process.cwd(), 'middleware.ts'), 'this is not valid middleware')
18941891
await isBuilt
18951892
expect(middlewareExists()).toBeFalsy()
1896-
console.log('done should remove the output if invalid middleware is written after the watcher starts')
18971893
})
18981894

18991895
it.skip('should recompile the middleware if it is moved into the src directory after the watcher starts', async () => {
@@ -1913,7 +1909,6 @@ describe('the dev middleware watcher', () => {
19131909
await move(path.join(process.cwd(), 'middleware.ts'), path.join(process.cwd(), 'src', 'middleware.ts'))
19141910
await isBuilt
19151911
expect(middlewareExists()).toBeTruthy()
1916-
console.log('done should recompile the middleware if it is moved into the src directory after the watcher starts')
19171912
})
19181913

19191914
it.skip('should recompile the middleware if it is moved into the root directory after the watcher starts', async () => {
@@ -1934,7 +1929,6 @@ describe('the dev middleware watcher', () => {
19341929
await move(path.join(process.cwd(), 'src', 'middleware.ts'), path.join(process.cwd(), 'middleware.ts'))
19351930
await isBuilt
19361931
expect(middlewareExists()).toBeTruthy()
1937-
console.log('done should recompile the middleware if it is moved into the root directory after the watcher starts')
19381932
})
19391933

19401934
it.skip('should compile the middleware if invalid source is replaced with valid source after the watcher starts', async () => {
@@ -1954,9 +1948,6 @@ describe('the dev middleware watcher', () => {
19541948
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)
19551949
await isBuilt
19561950
expect(middlewareExists()).toBeTruthy()
1957-
console.log(
1958-
'done should compile the middleware if invalid source is replaced with valid source after the watcher starts',
1959-
)
19601951
})
19611952

19621953
it('should not compile middleware if more than one middleware file exists', async () => {
@@ -1971,7 +1962,6 @@ describe('the dev middleware watcher', () => {
19711962
await writeFile(path.join(process.cwd(), 'middleware.js'), middlewareSourceJs)
19721963
await isBuilt
19731964
expect(middlewareExists()).toBeFalsy()
1974-
console.log('done should not compile middleware if more than one middleware file exists')
19751965
})
19761966

19771967
it.skip('should not compile middleware if a second middleware file is added after the watcher starts', async () => {
@@ -1989,7 +1979,6 @@ describe('the dev middleware watcher', () => {
19891979
await writeFile(path.join(process.cwd(), 'middleware.js'), middlewareSourceJs)
19901980
await isBuilt
19911981
expect(middlewareExists()).toBeFalsy()
1992-
console.log('done should not compile middleware if a second middleware file is added after the watcher starts')
19931982
})
19941983

19951984
it.skip('should compile middleware if a second middleware file is removed after the watcher starts', async () => {
@@ -2010,7 +1999,6 @@ describe('the dev middleware watcher', () => {
20101999
await unlink(path.join(process.cwd(), 'middleware.js'))
20112000
await isBuilt
20122001
expect(middlewareExists()).toBeTruthy()
2013-
console.log('done should compile middleware if a second middleware file is removed after the watcher starts')
20142002
})
20152003

20162004
it.skip('should generate the correct output for each case when middleware is compiled, added, removed and for error states', async () => {

0 commit comments

Comments
 (0)