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 da19a810_9cdf_a839_a869_42dece50637f["wasm.test.ts"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] da19a810_9cdf_a839_a869_42dece50637f --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"] da19a810_9cdf_a839_a869_42dece50637f --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 style da19a810_9cdf_a839_a869_42dece50637f 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 Oxide 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: Oxide, directory: integrations/oxide).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free