diff --git a/lib/snippets/node/index.ts b/lib/snippets/node/index.ts index e013b9a..74a7407 100644 --- a/lib/snippets/node/index.ts +++ b/lib/snippets/node/index.ts @@ -13,6 +13,7 @@ import { } from '@sapphirecode/standard'; import { Snippet } from '../../Snippet'; import { apply_template, modify_json, run_command } from '../../Helper'; +import fs from 'fs-extra'; import { eslintrc, gitignore, @@ -128,10 +129,11 @@ export default class Node implements Snippet { run_command ('git init', folder); if (use_tests) { - apply_template ( + await apply_template ( standard_files.jasmine, path.join (folder, 'jasmine.json') ); + await fs.mkdirp(path.join(folder,'test/spec')) } await init_package (folder, use_ts, use_tests); diff --git a/package.json b/package.json index 40fee9d..dd1dadc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/snippeteer", - "version": "1.5.0", + "version": "1.5.1", "description": "macros for setting up projects or project parts", "main": "index.js", "bin": {