diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a5d4f9..06fdff1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.4.x + +switching projects from ava to jasmine test framework + ## 1.3.x using custom image to simplify node module deployment diff --git a/README.md b/README.md index 06c47e3..6c5753a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @sapphirecode/standard -version: 1.3.x +version: 1.4.x standard files and scripts for sapphirecode modules diff --git a/asset_drone.js b/assets/drone.js similarity index 100% rename from asset_drone.js rename to assets/drone.js diff --git a/assets/index.js b/assets/index.js new file mode 100644 index 0000000..b732f36 --- /dev/null +++ b/assets/index.js @@ -0,0 +1,13 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of standard which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , September 2020 + */ + +'use strict'; + +const drone = require ('./drone'); +const jasmine = require ('./jasmine'); + +module.exports = { drone, jasmine }; diff --git a/assets/jasmine.js b/assets/jasmine.js new file mode 100644 index 0000000..c1f676a --- /dev/null +++ b/assets/jasmine.js @@ -0,0 +1,22 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of standard which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , September 2020 + */ + +'use strict'; + +module.exports = ` +{ + "spec_dir": "test", + "spec_files": [ + "spec/*.js" + ], + "helpers": [ + "helpers/*.js" + ], + "stopSpecOnExpectationFailure": false, + "random": false +} +`; diff --git a/index.js b/index.js index d9cb331..1de30a2 100644 --- a/index.js +++ b/index.js @@ -7,15 +7,13 @@ 'use strict'; -const drone = require ('./asset_drone'); - -const files = { drone }; +const files = require ('./assets'); const scripts = { lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs', test: { - common: 'nyc ava', - ts: 'tsc && nyc ava', + common: 'nyc jasmine --config="jasmine.json"', + ts: 'tsc && nyc jasmine --config="jasmine.json"', no: 'echo "no test"' }, compile: { diff --git a/package.json b/package.json index f06087e..7923804 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/standard", - "version": "1.3.1", + "version": "1.4.0", "main": "index.js", "author": { "name": "Timo Hocker", @@ -28,6 +28,7 @@ "files": [ "LICENSE", "*.js", - "*.d.ts" + "*.d.ts", + "assets/*.js" ] -} +} \ No newline at end of file