Skip to content

Commit

Permalink
fix for issue #588
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Jan 10, 2022
1 parent 4ed847a commit bf4bcbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/create-example-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'use strict';

const path = require('path');
const fs = require('fs');
const { Readable } = require('stream');
const {
types: { isArrayBufferView, isArrayBuffer },
Expand Down Expand Up @@ -97,6 +98,9 @@ const createExampleTests = async ({ directory, args = {} }) => {
const testPlanBuildDirectory = path.join(buildDirectory, directory);
const indexFileBuildOutputPath = path.join(testPlanBuildDirectory, 'index.html');

// create build directory if it doesn't exist
fs.existsSync(buildDirectory) || fs.mkdirSync(buildDirectory);

const existingBuildPromise = FileRecordChain.read(buildDirectory, {
glob: [
'',
Expand Down

0 comments on commit bf4bcbc

Please sign in to comment.