Home / File/ workers.test.ts — tailwindcss Source File

workers.test.ts — tailwindcss Source File

Architecture documentation for workers.test.ts, a typescript file in the tailwindcss codebase. 2 imports, 0 dependents.

File typescript Oxide 2 imports

Entity Profile

Dependency Diagram

graph LR
  1d2c679b_1614_e367_8ece_6427112127f0["workers.test.ts"]
  7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"]
  1d2c679b_1614_e367_8ece_6427112127f0 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac
  44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"]
  1d2c679b_1614_e367_8ece_6427112127f0 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04
  style 1d2c679b_1614_e367_8ece_6427112127f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { js, json, test } from '../utils'

test(
  '@tailwindcss/oxide can be loaded into a Node.js worker thread',
  {
    fs: {
      'package.json': json`
        {
          "dependencies": {
            "@tailwindcss/oxide": "workspace:^"
          }
        }
      `,
      'start.js': js`
        let { Worker } = require('worker_threads')
        new Worker('./worker.js')
      `,
      'worker.js': js`
        require('@tailwindcss/oxide')
        process.on('exit', () => console.log('worker thread exited'))
      `,
    },
  },
  async ({ exec, expect }) => {
    let output = await exec('node ./start.js').then(
      (out) => out.trim(),
      (err) => `${err}`,
    )

    expect(output).toEqual('worker thread exited')
  },
)

Domain

Dependencies

Frequently Asked Questions

What does workers.test.ts do?
workers.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does workers.test.ts depend on?
workers.test.ts imports 2 module(s): test, utils.ts.
Where is workers.test.ts in the architecture?
workers.test.ts is located at integrations/oxide/workers.test.ts (domain: Oxide, directory: integrations/oxide).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free