Talk about AVA, which is JavaScript test runner at mentaico.js #1. http://mentaico-js.connpass.com/event/39906/
Talk about AVA, which is JavaScript test runner at mentaico.js #1. http://mentaico-js.connpass.com/event/39906/
// hybrid module, either works import { LRUCache } from 'lru-cache' // or: const { LRUCache } = require('lru-cache') // or in minified form for web browsers: import { LRUCache } from 'http://unpkg.com/lru-cache@9/dist/mjs/index.min.mjs' // At least one of 'max', 'ttl', or 'maxSize' is required, to prevent // unsafe unbounded storage. // // In most cases, it's best to specify a max for performance,
以下、詳細です。 JUnitのXML JUnitの実行結果のXMLフォーマット | Developers.IO 上記記事に詳しく書いているが、Jenkinsにテスト結果を入力するには「JUnitのXML」と呼ばれる形式で出力する必要がある。 そのXMLに公式な仕様は無い(Schemaはこれ?)ようだが、CIツールのデファクトスタンダードになっているようで、mochaならばxunit-file, mocha-jenkins-reporter, mocha-junit-reporterなどを使えばOK。 AVA avajs/ava: Futuristic JavaScript test runner AVA(えぃゔぁ)は、JavaScriptのテストフレームワーク。power-assertやBabel、Assertion Planning(参考記事:おまえは今まで実行したassertの回数を覚
UNPKG is a fast, global content delivery network for everything on npm. Use it to quickly and easily load any file on npm using a URL like: unpkg.com/:pkg@:ver/:filehttps://unpkg.com/:package@:version/:file :pkg:package is the name of the package on npm:ver:version is the version of the package:file is the path to a file in the packageFor example: unpkg.com/preact@10.26.4/dist/preact.min.jsunpkg.c
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? 最近聞かれなくなってきた Isomorphic JavaScript ですが、気付けば今は Universal JavaScript と呼ばれているらしいです。 そもそも日本語の記事が少なくて困ったので、色々調べたものを整理するために書きます。 とても簡単にふわっとまとめると、以下のような感じ。 SPA で問題となるのがSEO対策、初回ロード時間 SSR はこれを解決してくれるが、クライアントとサーバでロジックの重複が発生 同じコードをクライアントとサーバで実行しよう = Isomophic! 同じコードをネイティブアプリやデスクトップ
Le document présente un extrait de code JavaScript impliquant des requêtes HTTP et la gestion des erreurs. Il montre comment faire une requête à une URL et comment gérer les erreurs potentielles via des blocs try/catch. L'exemple inclut également un middleware pour gérer les erreurs dans une application Express.
Experimenting with window.onerror , trying to make JavaScript debugging easy. What does it do? As of now, it provides JavaScript error details in a readable format. Planning to add more functionality later where turning on the debugging mode will throw error details on the screen. Example Lets take a simple code snippet which will raise an exception. var test = a + 1; //a is not defined Instead of
はじめまして Yuji Sugiura / @leader22 フロントエンド・エンジニア at PixelGrid Inc. 前々回にイカの話してたやつです 最近は仕事でなぜかコードゴルフ⛳してます JavaScriptに型をつけるやつ // いままで let eventName: string = 'Node学園'; eventName = 21; // @flow let eventName: string = 'Node学園'; eventName = 21; // This type is incompatible with string 新たな言語ではない🍀 あとから型の注釈をつけていく Facebook製 最新のバージョンは0.27.0
The document is a summary of the Cybozu Meetup held on February 27, 2017, discussing various web technologies including JavaScript frameworks like React and Angular, as well as tools like Kintone and Garoon. It covers topics such as web component development, API integration, and accessibility standards. The agenda includes details on JavaScript best practices, compiler tools, and various JavaScri
Since a few months I’ve stopped using React’s setState on all my new React components. Don’t get me wrong, I didn’t stop having local component state, I just stopped using React to manage it. And it’s been delightful! Using setState is tricky for beginners. Even experienced React programmers easily introduce subtle bugs when using React’s own state mechanism, like this: Bug introduced by forgettin
Getting started Kakapo its a full featured http mocking library, he allows you to entirely replicate your backend logic in simple and declaritive way directly in the browser. This way you can easily prototype and develop the whole Application without backend and just deactivate Kakapo when you go production. In order to achieve that Kakapo gives you a set of utilities like Routing, Database, Respo
先にまとめを書いておきます GitHubの大量のIssue/PRを効率的に閲覧できるJasperというソフトウェアを作りました 閲覧したいIssueのStream(RSSフィードみたいなもの)を好きな条件で作成することができます 条件はメンションされた、作成した、特定のリポジトリなど、かなり柔軟に設定できます Mac/Windowsの両方に対応しており、$12で販売中です無料で使えます 30日間のフリートライアル版もあります 背景 ソフトウェアエンジニアとして仕事や個人で活動をしていると、GitHubやGitHub Enterprise(GHE)を使うことが多いと思います。 僕も仕事ではGHEを使っており、個人ではOSSを作っているのでプライベートな活動でもGitHubをよく使っています。 そんなGitHubですが、一つ大きな不満があります。 それはIssueやPull Request(P
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く