虫胶 一种使调用一系列Shell命令更安全,更美观的工具。 用法 import shellac from 'shellac' test ( 'morty' , async ( ) => await shellac ` $ echo "End-to-end CLI testing made nice" $ node -p "5 * 9" stdout >> ${ ( answer ) => expect ( Number ( answer ) ) . toBeGreaterThan ( 40 ) } ` ) 句法 基本命令 await shellac ` // To execute a command, use $ $ my command here // If you want the output piped through to process.stdo