mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
chore(v2): Add E2E test for yarn v2 (#3008)
* chore(v2): Add E2E test for yarn v2 * Remove root node_modules to prevent them from accessible in e2e test The purpose of e2e test is to ensure that the docusaurus inited website can stand on its own. The root node_modules remain accessible according to how node resolution works and it might interfere with the test. Remove them for safety. * Add @mdx-js/react to docusaurus init templates
This commit is contained in:
parent
086d1b7135
commit
cf5babd5c1
5 changed files with 41 additions and 3 deletions
|
@ -27,7 +27,7 @@ git diff --name-only -- '*.json' | sed 's, ,\\&,g' | xargs git checkout --
|
|||
npm_config_registry="$CUSTOM_REGISTRY_URL" npx @docusaurus/init@"$NEW_VERSION" init test-website classic
|
||||
|
||||
# Stop Docker container
|
||||
if ( $(docker container inspect "$CONTAINER_NAME" > /dev/null 2>&1) ); then
|
||||
if (! $KEEP_CONTAINER) && ( $(docker container inspect "$CONTAINER_NAME" > /dev/null 2>&1) ); then
|
||||
# Remove Docker container
|
||||
docker container stop $CONTAINER_NAME > /dev/null
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue