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.

Entity Profile

Dependency Diagram

graph LR
  c3eea43d_d0b6_c956_923a_4b284d947fa0["workers.test.ts"]
  9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"]
  c3eea43d_d0b6_c956_923a_4b284d947fa0 --> 9ffd1dda_9675_c514_373d_0f4ab4648249
  f11e3be9_51f8_140b_68b0_f58ddd082595["test"]
  c3eea43d_d0b6_c956_923a_4b284d947fa0 --> f11e3be9_51f8_140b_68b0_f58ddd082595
  style c3eea43d_d0b6_c956_923a_4b284d947fa0 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 OxideEngine 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: OxideEngine, directory: integrations/oxide).

Analyze Your Own Codebase

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

Try Supermodel Free