/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/multiple-entries/test.config.js
25 строк
559 B
Alexander Akait
Cut Bun test skips down to the few cases Bun genuinely can't run (#21239)
21 июн 2026, 21:58
Не верифицирован
21 июн 2026, 21:58
10f5fcc
Код
Авторство
О чём код?
"use strict"; const fs = require("fs"); const path = require("path"); module.exports = { findBundle() { return ["basic.js"]; }, afterExecute(options) { // Sort: readdirSync order is filesystem-dependent (differs on Bun). const files = fs .readdirSync(options.output.path) .filter((item) => !/stats/.test(item)) .sort(); expect(files).toMatchSnapshot(); for (const file of files.filter((item) => /\.css/.test(item))) { expect( fs.readFileSync(path.join(options.output.path, file), "utf8") ).toMatchSnapshot(file); } } };