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
|
|
@ -25,11 +25,11 @@ describe('static build', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe.each([{ TAILWIND_MODE: 'watch' }, { TAILWIND_MODE: undefined }])('watcher %p', (env) => {
|
||||
describe('watcher', () => {
|
||||
test(`classes are generated when the html file changes`, async () => {
|
||||
await writeInputFile('index.html', html`<div class="font-bold"></div>`)
|
||||
|
||||
let runningProcess = $('webpack --mode=development --watch', { env })
|
||||
let runningProcess = $('webpack --mode=development --watch')
|
||||
|
||||
await waitForOutputFileCreation('main.css')
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ describe.each([{ TAILWIND_MODE: 'watch' }, { TAILWIND_MODE: undefined }])('watch
|
|||
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 = $('webpack --mode=development --watch', { env })
|
||||
let runningProcess = $('webpack --mode=development --watch')
|
||||
|
||||
await waitForOutputFileCreation('main.css')
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ describe.each([{ TAILWIND_MODE: 'watch' }, { TAILWIND_MODE: undefined }])('watch
|
|||
test(`classes are generated when the index.css file changes`, async () => {
|
||||
await writeInputFile('index.html', html`<div class="font-bold btn"></div>`)
|
||||
|
||||
let runningProcess = $('webpack --mode=development --watch', { env })
|
||||
let runningProcess = $('webpack --mode=development --watch')
|
||||
|
||||
await waitForOutputFileCreation('main.css')
|
||||
|
||||
|
|
@ -245,7 +245,7 @@ describe.each([{ TAILWIND_MODE: 'watch' }, { TAILWIND_MODE: undefined }])('watch
|
|||
`
|
||||
)
|
||||
|
||||
let runningProcess = $('webpack --mode=development --watch', { env })
|
||||
let runningProcess = $('webpack --mode=development --watch')
|
||||
|
||||
await waitForOutputFileCreation('main.css')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue