text: const { runScriptCommands } = require('./reader-npm');
  
  test('outputs with empty config', () => {
  	expect(runScriptCommands()).toEqual([
  		'DETECTED_NPM_VERSION=$(npm -v)',
  		"DETECTED_NODE_VERSION=$(node -v | sed 's/^v//')",
  		// eslint-disable-next-line no-template-curly-in-string
  		'echo "[🏷npm:${DETECTED_NPM_VERSION}]"',
  		// eslint-disable-next-line no-template-curly-in-string
  		'echo "[🏷node:${DETECTED_NODE_VERSION}]"',
  		'echo "$ source .cloudcannon/preinstall"',
  		'if [ -f ".cloudcannon/preinstall" ]; then source .cloudcannon/preinstall; else echo "Not found."; fi',
  		'echo "$ cd /usr/local/__site/src/"',
  		'cd /usr/local/__site/src/',
  		'echo "$ npm install"',
  		'npm install',
  		'echo "$ source .cloudcannon/prebuild"',
  		'if [ -f ".cloudcannon/prebuild" ]; then source .cloudcannon/prebuild; else echo "Not found."; fi',
  		'echo "$ cd /usr/local/__site/src/"',
  		'cd /usr/local/__site/src/',
  		'echo "$ npm run build"',
  		'npm run build',
  		'echo "$ npx @cloudcannon/reader@latest --output "public""',
  		'npx @cloudcannon/reader@latest --output "public"',
  		'echo "$ source .cloudcannon/postbuild"',
  		'if [ -f ".cloudcannon/postbuild" ]; then source .cloudcannon/postbuild; else echo "Not found."; fi',
  		'echo "$ cd /usr/local/__site/src/"',
  		'cd /usr/local/__site/src/',
  		'find /usr/local/__site/compiled/ -mindepth 1 -delete',
  		'shopt -s dotglob extglob',
  		'[ -z "$(ls public)" ] || mv public/!(.cloudcannon|..|.) /usr/local/__site/compiled/',
  		'shopt -u dotglob extglob',
  		'echo "[☁️Start Export]"',
  		'echo "{"',
  		'echo "\\"syncPaths\\": \\"$SYNC_PATHS\\""',
  		'echo "}"'
  	]);
  });
  
  test('outputs with @next config', () => {
  	expect(runScriptCommands({ use_beta_plugin: true, input: 'src' })).toEqual([
  		'DETECTED_NPM_VERSION=$(npm -v)',
  		"DETECTED_NODE_VERSION=$(node -v | sed 's/^v//')",
  		// eslint-disable-next-line no-template-curly-in-string
  		'echo "[🏷npm:${DETECTED_NPM_VERSION}]"',
  		// eslint-disable-next-line no-template-curly-in-string
  		'echo "[🏷node:${DETECTED_NODE_VERSION}]"',
  		'echo "$ source .cloudcannon/preinstall"',
  		'if [ -f ".cloudcannon/preinstall" ]; then source .cloudcannon/preinstall; else echo "Not found."; fi',
  		'echo "$ cd /usr/local/__site/src/"',
  		'cd /usr/local/__site/src/',
  		'echo "$ npm install"',
  		'npm install',
  		'echo "$ source .cloudcannon/prebuild"',
  		'if [ -f ".cloudcannon/prebuild" ]; then source .cloudcannon/prebuild; else echo "Not found."; fi',
  		'echo "$ cd /usr/local/__site/src/"',
  		'cd /usr/local/__site/src/',
  		'echo "$ npm run build"',
  		'npm run build',
  		'echo "$ npx @cloudcannon/reader@next --output "public""',
  		'npx @cloudcannon/reader@next --output "public"',
  		'echo "$ source .cloudcannon/postbuild"',
  		'if [ -f ".cloudcannon/postbuild" ]; then source .cloudcannon/postbuild; else echo "Not found."; fi',
  		'echo "$ cd /usr/local/__site/src/"',
  		'cd /usr/local/__site/src/',
  		'find /usr/local/__site/compiled/ -mindepth 1 -delete',
  		'shopt -s dotglob extglob',
  		'[ -z "$(ls public)" ] || mv public/!(.cloudcannon|..|.) /usr/local/__site/compiled/',
  		'shopt -u dotglob extglob',
  		'echo "[☁️Start Export]"',
  		'echo "{"',
  		'echo "\\"syncPaths\\": \\"$SYNC_PATHS\\""',
  		'echo "}"'
  	]);
  });
  