-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
e2e-jest.sh
38 lines (28 loc) 路 1.17 KB
/
e2e-jest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#==============================================================================#
# SETUP #
#==============================================================================#
# Start in scripts/integration-tests/ even if run from root directory
cd "$(dirname "$0")" || exit
source utils/local-registry.sh
source utils/cleanup.sh
# Echo every command being executed
set -x
# Clone jest
git clone --depth=1 https://github.com/facebook/jest tmp/jest
cd tmp/jest || exit
#==============================================================================#
# ENVIRONMENT #
#==============================================================================#
node -v
yarn --version
python --version
#==============================================================================#
# TEST #
#==============================================================================#
startLocalRegistry "$PWD"/../../verdaccio-config.yml
yarn install
yarn build
# Test
CI=true yarn test
cleanup