Remove the watching context (#6858)
* remove watching context * update changelog
This commit is contained in:
parent
b9af5a916b
commit
1cbb29faeb
12 changed files with 62 additions and 396 deletions
|
|
@ -32,9 +32,7 @@ describe('watcher', () => {
|
|||
test('classes are generated when the html file changes', async () => {
|
||||
await writeInputFile('index.html', html`<div class="font-bold"></div>`)
|
||||
|
||||
let runningProcess = $('postcss ./src/index.css -o ./dist/main.css -w --verbose', {
|
||||
env: { TAILWIND_MODE: 'watch' },
|
||||
})
|
||||
let runningProcess = $('postcss ./src/index.css -o ./dist/main.css -w --verbose')
|
||||
await runningProcess.onStderr(ready)
|
||||
|
||||
expect(await readOutputFile('main.css')).toIncludeCss(
|
||||
|
|
@ -83,9 +81,7 @@ describe('watcher', () => {
|
|||
test('classes are generated when the tailwind.config.js file changes', async () => {
|
||||
await writeInputFile('index.html', html`<div class="font-bold md:font-medium"></div>`)
|
||||
|
||||
let runningProcess = $('postcss ./src/index.css -o ./dist/main.css -w --verbose', {
|
||||
env: { TAILWIND_MODE: 'watch' },
|
||||
})
|
||||
let runningProcess = $('postcss ./src/index.css -o ./dist/main.css -w --verbose')
|
||||
|
||||
await runningProcess.onStderr(ready)
|
||||
|
||||
|
|
@ -145,9 +141,7 @@ describe('watcher', () => {
|
|||
test('classes are generated when the index.css file changes', async () => {
|
||||
await writeInputFile('index.html', html`<div class="font-bold btn"></div>`)
|
||||
|
||||
let runningProcess = $('postcss ./src/index.css -o ./dist/main.css -w --verbose', {
|
||||
env: { TAILWIND_MODE: 'watch' },
|
||||
})
|
||||
let runningProcess = $('postcss ./src/index.css -o ./dist/main.css -w --verbose')
|
||||
|
||||
await runningProcess.onStderr(ready)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue