wasm.test.ts — tailwindcss Source File
Architecture documentation for wasm.test.ts, a typescript file in the tailwindcss codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a9f96998_c3a2_4140_4d48_aa1fb1cdebcf["wasm.test.ts"] 9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"] a9f96998_c3a2_4140_4d48_aa1fb1cdebcf --> 9ffd1dda_9675_c514_373d_0f4ab4648249 f11e3be9_51f8_140b_68b0_f58ddd082595["test"] a9f96998_c3a2_4140_4d48_aa1fb1cdebcf --> f11e3be9_51f8_140b_68b0_f58ddd082595 style a9f96998_c3a2_4140_4d48_aa1fb1cdebcf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { css, js, json, test } from '../utils'
// This test runs the wasm build using the `node:wasi` runtime.
//
// There are currently a known problems that the Node WASI preview implementation does not properly
// handle FS reads on macOS and it does not implement all APIs on Windows. Because of that, this
// test is only run on Linux for now.
//
// https://github.com/nodejs/node/issues/47193
// https://github.com/nodejs/uvwasi/issues/11
let testFn = process.platform === 'linux' ? test : test.skip
testFn(
'@tailwindcss/oxide-wasm32-wasi can be loaded into a Node.js process',
{
fs: {
'package.json': json`
{
"dependencies": {
"@tailwindcss/oxide-wasm32-wasi": "workspace:^"
}
}
`,
'src/index.css': css`@import 'tailwindcss/utilities';`,
'src/index.js': js`
const className = "content-['src/index.js']"
module.exports = { className }
`,
'index.mjs': js`
import { Scanner } from '@tailwindcss/oxide-wasm32-wasi'
import { join, resolve } from 'node:path'
let scanner = new Scanner({
sources: [
{
base: join(process.cwd(), 'src'),
pattern: '**/*',
negated: false,
},
],
})
console.log(JSON.stringify(scanner.scan()))
process.exit()
`,
},
},
async ({ expect, exec }) => {
let output = await exec(`node index.mjs`)
expect(JSON.parse(output)).toMatchInlineSnapshot(`
[
"className",
"const",
"content-['src/index.js']",
"exports",
]
`)
},
)
Domain
Source
Frequently Asked Questions
What does wasm.test.ts do?
wasm.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain.
What does wasm.test.ts depend on?
wasm.test.ts imports 2 module(s): test, utils.ts.
Where is wasm.test.ts in the architecture?
wasm.test.ts is located at integrations/oxide/wasm.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