Skip to content

Commit

Permalink
chore: e2e going ts
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 8, 2024
1 parent 9f9b268 commit c367ecd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
File renamed without changes.
18 changes: 9 additions & 9 deletions test/e2e/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ appname=viteapp
appdir="$tmp/$appname"

# create app
(cd $tmp; npm create -y vite@latest $appname -- --template react)
(cd $tmp; npm create -y vite@latest $appname -- --template react-ts)

# drei
(cd $appdir; npm i; npm i $TGZ)

# App.jsx
cp App.jsx $appdir/src/App.jsx
# App.tsx
cp App.tsx $appdir/src/App.tsx

# build+start+playwright
(cd $appdir; npm run build; npm run preview -- --host --port $PORT &)
Expand All @@ -58,13 +58,13 @@ appname=nextapp
appdir="$tmp/$appname"

# create app
(cd $tmp; npx -y create-next-app@latest $appname --js --no-eslint --no-tailwind --no-src-dir --app --import-alias "@/*")
(cd $tmp; npx -y create-next-app@latest $appname --ts --no-eslint --no-tailwind --no-src-dir --app --import-alias "@/*")

# drei
(cd $appdir; npm i $TGZ)

# App.jsx
cp App.jsx $appdir/app/page.js
# App.tsx
cp App.tsx $appdir/app/page.tsx

# build+start+playwright
(cd $appdir; npm run build; npm start -- -p $PORT &)
Expand All @@ -84,13 +84,13 @@ appname=craapp
appdir="$tmp/$appname"

# create app
(cd $tmp; npx create-react-app $appname)
(cd $tmp; npx create-react-app $appname --template typescript)

# drei
(cd $appdir; npm i $TGZ)

# App.jsx
cp App.jsx $appdir/src/App.js
# App.tsx
cp App.tsx $appdir/src/App.tsx

# build+start+playwright
(cd $appdir; npm run build; npx serve -s -p $PORT build &)
Expand Down

0 comments on commit c367ecd

Please sign in to comment.