Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings
/ test Public

🎉 A zero configuration test library based on jest.

License

Notifications You must be signed in to change notification settings

walrusjs/test

Repository files navigation

@walrus/test

A zero configuration test library based on jest.

NPM version NPM downloads

📦 安装

  • npm 安装
npm install @walrus/test --dev --save
  • yarn 安装
yarn add @walrus/test --dev

🔨 使用

package.json 添加如下代码

scripts: {
 "test": "walrus-test"
}

命令行执行 yarn test || npm run test

🌴 一些约定

  • @ 默认指向根目录的src目录

🌟 小技巧

  • 测试指定目录或指定文件的测试用例
# 测试指定的目录, 可使用正则
walrus-test path/dir
# 测试指定的文件, 可使用正则
walrus-test path/to/my-test.js

About

🎉 A zero configuration test library based on jest.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /