Skip to content

node

Documentation / @wtf/project-wpt / node

What the runner takes of its platform, of Node (nodeSystem): the process’s environment, timers, clock and working folder (nodePlatform); the disk (nodeFiles); git run by node:child_process (nodeExec); a node:vm context of each test file (nodeRealm); and the process’s rejections no one handles (nodeRejections). A repo’s test file passes it to wptSuite.

import { nodeSystem } from '@wtf/project-wpt/node'
import { wptSuite } from '@wtf/project-wpt/suite'
wptSuite('encoding-streams', nodeSystem(), {
commit: '4ad507b28db0a636f528def9161d109fe11b93a3',
dirs: ['encoding/streams'],
globals: () => ({ TextDecoderStream, TextEncoderStream })
})

Variables

Functions