/
githubmirror
/
tailwindcss
Обзор
Документация
Войти
/
githubmirror
/
tailwindcss
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.4.19
integrations/resolve-tool-root.js
14 строк
360 B
Robin Malfait
Integrations setup (#4354)
18 май 2021, 18:21
Не верифицирован
18 май 2021, 18:21
7565099
Код
Авторство
О чём код?
let path = require('path') module.exports = function resolveToolRoot() { let { testPath } = expect.getState() let separator = '/' // TODO: Does this resolve correctly on windows, or should we use `path.sep` instead. return path.resolve( __dirname, testPath .replace(__dirname + separator, '') .split(separator) .shift() ) }