fix: correct website upload path (#483)

* test(wip): add ui tests

* fix: correct website upload path

* fix: use includes

* test: rewrite ui tests

* build: remove concurrently

* ci: run puppeteer in headless

* test: add regression tests

* test: add website regression 03 test

* test: add react test website

* chore: revert newlines

Co-authored-by: Cafe137 <aron@aronsoos.com>
This commit is contained in:
Cafe137
2022-07-25 11:24:32 +02:00
committed by GitHub
parent f01477ea70
commit 186d0352cf
35 changed files with 1521 additions and 1 deletions
+5 -1
View File
@@ -88,7 +88,11 @@ export function getPath(file: FilePath): string {
* Utility function that is needed to have correct directory structure as webkitRelativePath is read only
*/
export function packageFile(file: FilePath, pathOverwrite?: string): FilePath {
const path = pathOverwrite || getPath(file)
let path = pathOverwrite || getPath(file)
if (!path.startsWith('/') && path.includes('/')) {
path = `/${path}`
}
return {
path: path,