mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
42 lines
1.4 KiB
Bash
Executable File
42 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#==============================================================================#
|
|
# SETUP #
|
|
#==============================================================================#
|
|
|
|
# Start in scripts/integration-tests/ even if run from root directory
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
dir="$PWD"
|
|
|
|
source utils/local-registry.sh
|
|
source utils/cleanup.sh
|
|
|
|
# Echo every command being executed
|
|
set -x
|
|
|
|
#==============================================================================#
|
|
# TEST #
|
|
#==============================================================================#
|
|
|
|
startLocalRegistry "$PWD"/verdaccio-config.yml
|
|
|
|
# Create and build a new angular project
|
|
mkdir tmp && cd tmp
|
|
npx -p @angular/cli ng new --defaults ngx --package-manager yarn --skip-git --skip-install
|
|
cd ngx
|
|
node "$dir"/utils/bump-babel-dependencies.js resolutions
|
|
# Disable yarn minimal age gate because npx will fetch the latest version of Angular CLI
|
|
echo "npmMinimalAgeGate: 0" >> .yarnrc.yml
|
|
touch yarn.lock
|
|
yarn set version stable
|
|
export YARN_ENABLE_IMMUTABLE_INSTALLS=false
|
|
yarn install
|
|
# Install browser-playwright for ChromiumHeadless testing
|
|
yarn add playwright @vitest/browser-playwright --dev
|
|
yarn playwright install --with-deps
|
|
yarn run build
|
|
yarn run ng test --watch=false --browsers ChromiumHeadless
|
|
|
|
cleanup
|