Commit bd08a747 authored by Jay Swain's avatar Jay Swain

Provide command in case fixtures haven't been ran

This commit adds the command necessary to generate fixtures in the
output of the error that asks if you haven't generated fixtures.
parent d155b6d5
......@@ -29,7 +29,9 @@ const mergePurgeCSSOptions = (...options) =>
const getStartupCSS = async ({ htmlPaths, cssPaths, purgeOptions }) => {
const content = htmlPaths.map((htmlPath) => {
if (!fs.existsSync(htmlPath)) {
die(`Could not find fixture "${htmlPath}". Have you run the fixtures?`);
die(
`Could not find fixture "${htmlPath}". Have you run the fixtures? (bundle exec rspec spec/frontend/fixtures/startup_css.rb)`,
);
}
const rawHtml = fs.readFileSync(htmlPath);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment