Skip to content

Instantly share code, notes, and snippets.

@benquarmby
benquarmby / .nvmrc
Last active February 4, 2025 23:55
Jest ESM named import repro
22.11.0
@benquarmby
benquarmby / # jest-dom-query.md
Last active January 10, 2024 18:20
jest-dom-query

Proposal for jest assertions based on @testing-library/dom queries. Below is a fictitious README if it were packaged seperately.

Jest DOM Query

Unofficial @testing-library/dom assertions for Jest that complement @testing-library/jest-dom and make this advice easier to follow:

Advice: If you want to assert that something exists, make that assertion explicit.

Installation

@benquarmby
benquarmby / app.js
Created February 6, 2016 01:58
VSCode debugger freeze
'use strict';
var util = require('util');
console.log(util.inspect({
some: 'object'
}));
console.log('put a breakpoint on this line');
console.log('it will not be hit');