storybook/lib/cli/test/test_latest_cra.sh

15 lines
242 B
Bash
Executable File

#!/bin/bash
# exit on error
set -e
# remove and recreate `cra-fixtures` directory
rm -rfd cra-fixtures
mkdir cra-fixtures
cd cra-fixtures
npx create-react-app react-scripts-latest-fixture --use-npm
cd ..
./run_tests.sh -f cra-fixtures $@