文件名称:jest-handbook-examples:Jest 手册示例
文件大小:149KB
文件格式:ZIP
更新时间:2024-08-24 10:31:03
jest jest-tests jest-handbook JavaScript
要求 节点 10 纱线 1.x 或 npm 设置 克隆存储库 运行yarn或npm install安装所有必需的依赖项。 npm 脚本 等效的npm run [removed]也应该工作 yarn lint将使用对所有文件进行 lint yarn format将在所有示例文件(和测试)上使用--fix选项运行 lint。 执照 代码在下获得。
【文件预览】:
jest-handbook-examples-master
----.github()
--------dependabot.yml(276B)
--------workflows()
----yarn.lock(292KB)
----src()
--------03.02-notifications.test.js(1KB)
--------02.05-mock-object-id.failing.js(488B)
--------02.05-mock-object-id.test.js(552B)
--------02.02-to-be-called.test.js(371B)
--------05.04-pinger.test.js(2KB)
--------05.05-constructors.test.js(628B)
--------02.02-single-add.test.js(564B)
--------04.01-no-throw.test.js(144B)
--------02.02-spy-mock-implementation.test.js(472B)
--------05.05-thunkify.test.js(149B)
--------01.03-single-skip-test.test.js(219B)
--------01.03-many-skip-tests.test.js(260B)
--------02.03-date-now-stub.test.js(371B)
--------06.02-blob-store.test.js(2KB)
--------03.01-db.js(0B)
--------04.01-throws.test.js(162B)
--------03.03-db.js(0B)
--------06.01-header-auth.test.js(2KB)
--------04.03-async-throw.test.js(349B)
--------01.03-single-only-describe.test.js(266B)
--------03.03-lib-no-mock.cjs.js(210B)
--------05.03-nested-object-array-containing.test.js(266B)
--------05.03-object-with-arrays.test.js(229B)
--------04.02-mock-resolved-value.test.js(609B)
--------06.02-hugo.test.js(2KB)
--------03.01-lib.esm.js(436B)
--------05.01-object-containing.test.js(209B)
--------01.03-many-only-describes.test.js(384B)
--------01.03-many-skip-describes.test.js(415B)
--------05.02-array-containing.test.js(251B)
--------04.02-multi-mock-implementation-once-async.test.js(559B)
--------03.01-esm-default-mock.test.js(722B)
--------05.03-array-object-negative-match.test.js(324B)
--------01.03-single-skip-describe.test.js(220B)
--------04.02-mock-return-value.test.js(843B)
--------06.02-middleware.test.js(871B)
--------02.04-model.js(470B)
--------02.03-spy-date-constructor.test.js(269B)
--------02.02-not-to-be-have-been-called.test.js(479B)
--------06.01-logout.test.js(813B)
--------02.03-date-now-spy.test.js(297B)
--------06.01-login.test.js(3KB)
--------02.04-model-mock.test.js(534B)
--------01.03-many-only-tests.test.js(304B)
--------03.01-commonjs-mock.test.js(694B)
--------02.02-multiple-add.test.js(690B)
--------06.01-check-auth.test.js(1019B)
--------02.02-called-times.test.js(565B)
--------02.02-to-have-been-called.test.js(371B)
--------01.03-single-only-test.test.js(219B)
--------02.01-mockimplementation.test.js(470B)
--------03.03-lib.cjs.test.js(996B)
--------05.04-to-be-called-array-object-containing.test.js(852B)
--------02.01-beforeeach-clearallmocks.test.js(444B)
--------03.01-lib.cjs.js(373B)
--------03.02-notifications.js(626B)
--------04.02-mock-implementation-sync.test.js(470B)
--------04.02-mock-implementation-once-sync.test.js(478B)
--------03.03-lib-mockable.cjs.js(317B)
--------04.01-async-throw.test.js(337B)
--------03.01-esm-named-mock.test.js(700B)
--------02.03-mock-date-class.test.js(522B)
--------04.03-naive-synchronous-fail.test.js(301B)
----LICENSE(1KB)
----README.md(449B)
----.editorconfig(304B)
----.gitignore(1KB)
----package.json(1KB)