// Тесты слоя данных: берём код между LOGIC:START / LOGIC:END из index.html и выполняем в песочнице. const test = require('node:test'); const assert = require('node:assert'); const fs = require('node:fs'); const path = require('node:path'); const vm = require('node:vm'); const html = fs.readFileSync(path.join(__dirname, '..', 'index.html'), 'utf8'); test('lint: скрипт index.html — корректный JavaScript', () => { const m = html.match(/