Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Test Anything Protocol tools for node

License

NotificationsYou must be signed in to change notification settings

tapjs/tapjs

Repository files navigation

Workspace for node-tap development.

Dev Commands

Do this at least once to get everything set up and ready to go:

npm run bootstrap

(Note:npm installwill not work until you do this, becausethe generated TypeScript eats its own tail.)


Build the test class (required after any plugin or core changes):

npm run build

Any other builds:

npm run prepare -w src/{whatever}

After adding or removing workspaces:

npm i

Run all tests in all workspaces:

npm test

Run all tests, saving snapshots:

npm run snap

Build and serve docs:

npm start

Contents

  • tap Themain entry point module, which sets up the root test runner andexposes an alias to the cli runner.
  • tap-parserThe module that parsesTAP
  • @tapjs/coreMost of the basic moving parts of tap
  • tap-yamlThin wrapper aroundYAML andyaml-types forconsistent handling of JavaScript values in YAML diagnostics.
  • @tapjs/testThe plugin-ifiedTest class.
  • @tapjs/configHandling config files, command line interface parsing,environment variables, and validation
  • @tapjs/runThe command line runner
  • tcompareThe library that does comparison and object formatting (useheavily by@tapjs/asserts methods).
  • @tapjs/stackLibrary for capturing stack frames, the descendant ofstack-utils.
  • @tapjs/processinfoThe library that tracks process information and code coverage(hosted outside the monorepo, because it can't be tested by aversion of tap that uses itself without bootstrap paradoxes)
  • default plugins:
  • optional plugins:
  • other stuff:
    • npm-init-templateA library for more easily creatingnpm init packages. Thiswill move out as soon as this version of tap is published.
    • @tapjs/create-pluginAnnpm init library facilitatingnpm init @tapjs/pluginto create new plugins.

Bootstrap andskipLibCheck

Runnpm run bootstrap to build the@tapjs/test module withthe default set of plugins, so that the other libraries can buildproperly. (This only has to be done once, unless the build scriptor set of default plugins are changed, of course.)

Because there's a bootstrapping cycle between@tapjs/core,@tapjs/test, and all of the plugins, they MUST useskipLibCheck: true in their tsconfigs. It should not be used inother packages.


[8]ページ先頭

©2009-2025 Movatter.jp