mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* WIP * WIP * Finish combining JIT and AOT plugins Still lots of clean up that can be done in some of the more complex ones, but at least it's one file per plugin now. * Remove unused import * Fix AOT generation bugs * Move corePlugins/index.js to corePlugins.js * Convert JIT files to ESM * Move tests * Reorder core plugins to match JIT order * Update AOT apply tests * Unify utils * Combine plugin lists to one single source of truth * Finish resolving merge conflicts, fix tests Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
18 lines
594 B
JavaScript
18 lines
594 B
JavaScript
const path = require('path')
|
|
const process = require('child_process')
|
|
const { promisify } = require('util')
|
|
const exec = promisify(process.exec)
|
|
|
|
test.skip('a build re-uses the context across multiple files with the same config', async () => {
|
|
const filepath = path.resolve(__dirname, './context-reuse.worker.js')
|
|
|
|
const { stdout } = await exec(`node ${filepath}`)
|
|
|
|
const results = JSON.parse(stdout.trim())
|
|
|
|
expect(results[0].activeContexts).toBe(1)
|
|
expect(results[1].activeContexts).toBe(1)
|
|
expect(results[2].activeContexts).toBe(1)
|
|
expect(results[3].activeContexts).toBe(1)
|
|
})
|