Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Revert "remove test for new project"
Browse files Browse the repository at this point in the history
This reverts commit e7997c8.
  • Loading branch information
vgrichina committed Nov 5, 2019
1 parent 0bd921b commit 9345fa8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/test_new_project.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set -ex

# remove temporary blank project
rm -rf tmp-project

# test generating new project in cwd
mkdir tmp-project
cd tmp-project
../bin/near new_project
yarn
yarn remove near-shell
yarn add ../
yarn test
cd ..

# test generating new project in new dir
rm -rf tmp-project
./bin/near new_project 'tmp-project'
cd tmp-project
FILE=package.json
if test -f "$FILE"; then
echo "$FILE exists. Have a cookie!"
else
echo "ERROR: $FILE not found."
exit 1
fi

0 comments on commit 9345fa8

Please sign in to comment.