Что нашла сеть
Каждая строка ниже — измерение, а не мнение. Каждая ведёт к опубликованному образцу, contract которого выполняется в закреплённом контейнере с отключённой сетью, так что его можно перезапустить и оспорить результат.
Система и среда взяты из записи связанного образца; записи без выбранного измерения исключаются.
597 находок в 8 экосистемах.
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
Что заявляет образец и что измеряет его контракт
351–375 из 568, измеренных опубликованными образцами.
-
npmКонтракт образцаnode · linux/x64marked@17.0.3
СчитаетсяMarkdown image alt text containing double quotes is rendered with HTML entity escaping so the attribute value does not break out of quotes.
Измереноmarked.parse escapes double quotes inside image alt text as " rather than emitting raw unescaped double quotes inside alt attributes
-
npmКонтракт образцаnode · linux/x64luxon@3.7.2
СчитаетсяConfiguring Settings.defaultZone causes DateTime zone specifiers and setZone calls specifying 'system' to resolve to that configured default zone.
ИзмереноWhen Settings.defaultZone is overridden, Info.normalizeZone('system') and DateTime.fromISO(str, { zone: 'system' }) resolve to the host environment's SystemZone rather than Settings.defaultZone, while 'default' resolves to Settings.defaultZone instead of creating an invalid DateTime.
-
npmКонтракт образцаnode · linux/x64luxon@3.5.0
СчитаетсяSetting Settings.defaultZone overrides the zone for DateTime instances created or converted with the system zone specifier.
ИзмереноDateTime setZone('system') returns a SystemZone instance with type system rather than inheriting Settings.defaultZone.
-
npmКонтракт образцаnode · linux/x64luxon@3.6.1
СчитаетсяLooking up an invalid IANA timezone string such as 'constructor' in Luxon returns an invalid IANAZone object rather than the native Object constructor function.
ИзмереноIANAZone.create('constructor') returns an invalid IANAZone instance with isValid equal to false rather than returning the native Object constructor function.
-
npmКонтракт образцаnode · linux/x64luxon@3.5.0
СчитаетсяWhen throwOnInvalid is enabled, Luxon throws public custom error classes whose name property matches their constructor name.
ИзмереноLuxon's custom error classes (InvalidDateTimeError, InvalidDurationError, and InvalidIntervalError) are not exported, and their thrown instances have their name property set to 'Error' rather than their constructor names.
-
npmКонтракт образцаnode · linux/x64luxon@3.7.2
СчитаетсяDateTime.fromObject parses timezone configuration specified directly inside the date/time units object.
ИзмереноDateTime.fromObject throws an Error containing 'Invalid unit zone' if the 'zone' property is passed in the first argument object instead of the second options argument.
-
npmКонтракт образцаnode · linux/x64jest@30.4.2
Считаетсяexpect(received).toEqual(expected) and expect(received).toStrictEqual(expected) inspect all own properties on an object, failing when non-enumerable properties or non-enumerable symbols contain conflicting values.
Измереноexpect(received).toEqual(expected) and expect(received).toStrictEqual(expected) pass when two objects differ only in non-enumerable properties or non-enumerable symbols because Jest 30 excludes non-enumerable properties from object matchers by default.
-
npmКонтракт образцаnode · linux/x64jest@30.4.2
СчитаетсяPassing an empty array to test.each() safely runs zero tests, mirroring how JavaScript iteration handles empty arrays.
ИзмереноCalling test.each([]) throws a fatal error that crashes the test suite, rather than gracefully skipping and running zero tests.
-
npmКонтракт образцаnode · linux/x64jest@30.4.2
СчитаетсяA developer might expect that resetting Jest's module cache with jest.resetModules() is sufficient to restore the original implementation of a mocked dependency when the parent module is re-required.
Измереноjest.resetModules() alone fails to restore the original implementation of a mocked dependency because Jest retains the mock definition in its registry.
-
npmКонтракт образцаnode · linux/x64jest@29.7.0
СчитаетсяbeforeEach and afterEach hooks run for every test block defined in the file, including concurrent tests.
Измереноtest.concurrent bypasses beforeEach and afterEach hooks, executing concurrent tests without running the setup and teardown hooks.
-
npmКонтракт образцаnode · linux/x64jest@29.7.0
СчитаетсяJest's expect(a).toEqual(b) and expect(a).toStrictEqual(b) perform deep property equality on Error instances and fail when custom error properties differ.
Измереноexpect(errA).toEqual(errB) passes when errA and errB are Error instances with identical messages but different custom properties like code or statusCode.
-
npmКонтракт образцаnode · linux/x64jest@30.4.2
Считаетсяjest.isolateModules isolates module mocking performed with jest.doMock within its callback scope, so subsequent module require calls outside the callback return the unmocked original module.
ИзмереноCalling jest.doMock inside a jest.isolateModules callback mutates Jest's global mock registry, causing subsequent require calls outside the callback to receive the mock instead of the original module.
-
npmКонтракт образцаnode · linux/x64jest@29.7.0
СчитаетсяJest automatically clears mock function call history between tests by default.
ИзмереноMock function call history is not cleared between tests by default, so a mock function called in a previous test retains its calls in subsequent tests unless clearMocks is explicitly enabled.
-
npmКонтракт образцаnode · linux/x64jest@29.7.0
СчитаетсяCalling jest.spyOn on a getter property without an accessType argument raises a TypeError for non-function properties, or following its error message to use jest.replaceProperty successfully mocks the property value.
Измереноjest.spyOn on a getter property without accessType throws a base Error rather than a TypeError and suggests using jest.replaceProperty, which then throws another base Error stating it cannot replace getter properties and recommending jest.spyOn(object, property, 'get').
-
npmКонтракт образцаnode · linux/x64jest@29.7.0
СчитаетсяA test setup file configured under setupFiles has access to test framework globals like beforeEach, afterEach, and expect.extend.
Измереноassert running Jest with test framework hooks in setupFiles fails with ReferenceError: beforeEach is not defined because the framework environment is not yet initialized
-
npmКонтракт образцаnode · linux/x64jest@30.4.2
СчитаетсяCalling jest.resetAllMocks() restores functions spied on with jest.spyOn() back to their original unmocked implementation.
Измереноjest.resetAllMocks() clears mock call history and resets the mock implementation to return undefined rather than restoring the original unmocked method, which only jest.restoreAllMocks() or spy.mockRestore() performs.
-
npmКонтракт образцаnode · linux/x64jest@30.4.2
СчитаетсяA named ESM import from such a CommonJS module should always resolve to the corresponding own-property function export.
ИзмереноJest 30.4.2 keeps named imports working for a CommonJS module where `module.exports` is a function with own-property exports.
-
npmКонтракт образцаnode · linux/x64happy-dom@20.11.2
СчитаетсяHappy DOM writes console output directly to the host console, and filtering virtual console output leaves unmatched entries queued for a later read.
ИзмереноA default Window buffers log, warn, and error calls as exact structured entries with type, level, message, and null group metadata
-
npmКонтракт образцаnode · linux/x64happy-dom@20.11.2
СчитаетсяThe CSS attribute selector [attr~="val"] treats hyphens as word boundaries and matches substrings in hyphenated attribute values.
Измереноchild.matches('[data-controller~="modal"]') returns false against data-controller="modal-auto-close" rather than true, because [attr~="val"] matches only whitespace-separated tokens per CSS Selectors Level 4
-
npmКонтракт образцаnode · linux/x64express@4.18.2
СчитаетсяAll registered synchronous handlers on a single route will execute in sequence regardless of the stack size exceeding 100 handlers.
ИзмереноExpress 4.18.2 executes all 105 synchronous handlers registered on a single route, whereas Express 4.18.1 skips the 101st handler due to an off-by-one error during sync stack threshold reset.
-
npmКонтракт образцаnode · linux/x64express@5.2.1
Считаетсяreq.is('json') evaluates the Content-Type header directly regardless of whether a body was sent, req.range() returns empty arrays or null on invalid or unsatisfiable byte ranges, and req.accepts() returns true for any media type mentioned in the Accept header.
Измереноreq.is('json') returns null when the request lacks body headers such as Content-Length or Transfer-Encoding even if Content-Type application/json is present, returning the matched type string only when a body is actually transmitted
-
npmКонтракт образцаnode · linux/x64express@4.22.2
СчитаетсяExpress executes middlewares and route handlers in strict sequential order, preventing subsequent routes from running until preceding async middlewares complete and call next().
ИзмереноA downstream route handler is executed before a preceding async middleware completes if an earlier middleware calls next() twice.
-
npmКонтракт образцаnode · linux/x64es-toolkit@1.50.0
СчитаетсяPassing { leading: true, trailing: false } to debounce executes immediately on the first call and prevents delayed execution on the trailing edge.
ИзмереноPassing { leading: true, trailing: false } to es-toolkit debounce fails to invoke immediately because edges defaults to ['trailing'] unless configured as { edges: ['leading'] }, while trailing execution still fires on timeout.
-
npmКонтракт образцаnode · linux/x64express@4.21.2
СчитаетсяExpress identifies error-handling middleware by checking if the first argument is an error or omitting the unused next parameter like (err, req, res) still catches errors passed to next(err).
ИзмереноExpress skips 3-parameter error handlers (err, req, res) during error routing because it identifies error middleware solely by checking fn.length === 4, executing only 4-parameter functions (err, req, res, next) while running 3-parameter functions on normal requests with shifted arguments
-
npmКонтракт образцаnode · linux/x64core-js@3.50.0
СчитаетсяA core-js-provided URL.prototype.toJSON dynamically calls the current URL.prototype.toString, so reassigning toString later also changes toJSON output.
ИзмереноWhen the host URL.prototype.toJSON is absent, importing core-js/actual/url installs the method while retaining a compliant native URL constructor.
Как проверить любую строку здесь
Откройте образец, прочитайте его contract, запустите. Contract — это собственный тест образца: он выполняется без сети в закреплённом контейнере, и подписанная квитанция этого запуска — то, что хранит сеть. Ничто здесь не опирается на наше прочтение библиотеки — только на то, что библиотека сделала.
Некоторых опубликованных образцов на этой странице нет. Их контракт прошёл, и образец жив — но ни одна строка этого контракта не читается как фраза. Утверждение вроде expect(x).toBe(1), поставленное рядом с убеждением, которое оно проверяет, ничего читателю не говорит. Лучше оставить их за бортом, чем печатать свидетельство, которое никто не прочтёт.