Documentation IndexFetch the complete documentation index at: /docs/llms.txt Use this file to discover all available pages before exploring further.
技術書、ブログ、READMEを書いてていて、文章中に出てくるコードブロックのコードをテストしたいことがあると思います。 そのサンプルコードが本当に動いてるのか不安になることがあるからです。 power-doctestは、そのコードブロック中のコードにコメントを入れるだけでテスト可能にするツール群です。 power-doctestの例 具体的な例から見ていきます。 次の例では、Markdownで説明とJavaScriptのコードブロックを書いています。 デフォルト引数を使って書くことで、このような挙動は起きなくなるため安全です。 デフォルト引数では、引数が渡されなかった場合のみデフォルト値が入ります。 ```js function addPrefix(text, prefix = "デフォルト:") { return prefix + text; } // falsyな値を渡してもデフォルト
Generating code coverage for test files using Puppeteer is currently not possible if your test uses page.$eval, page.$$eval or page.evaluate as the passed function is executed outside of Jest's scope. Check out issue #7962 on GitHub for a workaround. Use jest-puppeteer Preset Jest Puppeteer provides all required configuration to run your tests using Puppeteer. First, install jest-puppeteer
autoscale: true Faao - ドメイン駆動設計で作るGitHub Issue Client - 自己紹介 Name : azu Twitter : @azu_re Website: Web scratch, JSer.info 過去に作ったやつ azu/GithubReader: Github Notifications Client for OS X azu/github-reader: [node-webkit] GitHub client app - Viewer for Notifications and News Feed. azu/github-issue-teev: [NW.js] GitHub Issue Manager(Viewer) Faao Faao - Feature Support Modern browser/mobile/Electron(re
var contents = ` /** * A Model is a convenience wrapper around objects stored in a * collection */ describe('Model', function() { /** * Model **should** be able to save **/ it('can save', function() { assert.ok(1); }); it('can save with a parameter', function() { }); }); `; var ret = acquit.parse(contents); // One top-level block: describe('Model') assert.equal(1, ret.length); assert.equal('descri
jsdoced.js will automatically extract jsdoc from your code. Using your jsdoc comments, it will generate another javascript file which makes sure your jsdoc is respected during execution. The more you documents your code, the safer it becomes. Detect New Family of Bugs Before, jsdoc comments were not used to test your code. So you will likely find new bugs thanks to it. And it is a good news! You w
この記事はECMAScript 2015の事始めとして、ライブラリをECMAScript 2015で書いて公開するというところから始めるのがいいのではという内容です。 ECMAScript 2015(ES2015)はES6とも呼ばれていてどちらも同じものを指しますが、この記事ではES2015に統一します。 ECMAScriptのバージョンについては次のページを参照してください。 ECMAScript · JavaScriptの入門書 #jsprimer 2018-12-27: 追記 textlint/textlint-rule-helperのmasterはTypeScriptの実装へ変換されています。 Babelの実装はhttps://github.com/textlint/textlint-rule-helper/tree/2.0.1から参照できます Babel から TypeScrip
SinonJSDoc 1.0 Welcome to Sinon.JS Documentation.¶ Contents:¶ 各Sinon.JSファイル¶ sinon.js sinon/spy.js sinon/stub.js sinon/mock.js sinon/collection.js sinon/assert.js sinon/sandbox.js sinon/test.js sinon/test_case.js sinon/match.js sinon/util/event.js sinon/util/fake_server.js sinon/util/fake_server_with_clock.js sinon/util/fake_timers.js sinon/util/fake_xml_http_request.js sinon/util/timers_ie.js sin
This document provides a tutorial for W3C's test framework, known as testharness.js, which you can download from its GitHub repository. This tutorial does not assume that you are necessarily familiar with other test frameworks, but it does expect you to be reasonably proficient with JavaScript (since JavaScript APIs is what one tests using this). If you are familiar with other test frameworks such
jDoctest¶ jDoctest is an useful test library for JavaScript that was inspired by Python‘s doctest module. It finds testable examples within your JavaScript files and checks if each example runs successfully. No more you need separated test files or documentation files. You only need a single file which contains an executable source code, documentations, and testable examples. Browser Support¶ jDoc
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く