/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/__tests__/parse-html.spec.ts
13 строк
413 B
liuzejia
refactor: 抽离webpack5-runner 测试到 tests
27 май 2024, 11:43
27 май 2024, 11:43
5b9772f
Код
Авторство
О чём код?
import { compile, getOutput } from './utils/compiler' describe('parse html', () => { test('should parse dangerouslySetInnerHTML', async () => { const { stats, config } = await compile('parse-html', { platformType: 'mini' }) const assets = stats.toJson().assets || [] expect(assets.length).toMatchSnapshot() const output = getOutput(stats, config) expect(output).toMatchSnapshot() }) })