/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/e2e/internals/source_map.sh
45 строк
1 KB
Unitech
v7 refactor
08 фев 2026, 17:04
08 фев 2026, 17:04
04fad96
Код
Авторство
О чём код?
#!/usr/bin/env bash SRC=$(cd $(dirname "$0"); pwd) source "${SRC}/../include.sh" cd $file_path # # Fork mode # $pm2 start source-map/main.js -e sm.log --merge-logs --disable-source-map-support sleep 2 cat sm.log | grep "main.js" spec "should not take source map into account" rm sm.log $pm2 delete all $pm2 start source-map/main.js -e sm.log --merge-logs sleep 2 cat sm.log | grep "main.ts" spec "should automatically activate source map support (detect main.ts)" rm sm.log $pm2 delete all $pm2 start source-map/main.js -e sm.log --merge-logs --source-map-support sleep 2 cat sm.log | grep "main.ts" spec "should force source map support" # # Cluster mode # rm sm.log $pm2 delete all $pm2 start source-map/main.js -e sm.log --merge-logs -i 1 sleep 2 cat sm.log | grep "main.ts" spec "should automatically activate source map support (detect main.ts)" rm sm.log $pm2 delete all $pm2 start source-map/main.js -e sm.log --merge-logs -i 1 --source-map-support sleep 2 cat sm.log | grep "main.ts" spec "should force source map support"