#!/bin/sh
set -e

echo "Test for rollup to be able to bundle a simple code which uses mermaid"
echo '``` 
    graph TD 
    A-->B 

```' > foo.js
rollup foo.js --output.file bundle.js --output.format cjs
rm -f ./bundle.js ./foo.js

