From 6aba7fb795fef92e241c99bad3ec93a14d6d4fa4 Mon Sep 17 00:00:00 2001 From: Graham Barber Date: Mon, 19 Nov 2018 14:51:36 -0800 Subject: [PATCH] Make tests work * ci(sail): use npm for consistency * ci(sail): use node:10, npx mocha for tests * ci(sail): attempt one-line command * ci(sail): use extra one line * chore(npm): add test:mocha script * ci(sail): use npm script * ci(sail): this is why I need this extension --- .sail.yml | 9 +++++---- package.json | 5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.sail.yml b/.sail.yml index 965012f..1a18715 100644 --- a/.sail.yml +++ b/.sail.yml @@ -1,13 +1,14 @@ tasks: build: - image: node:carbon + image: node:10 command: - npm args: - install test: - image: node:carbon + image: node:10 command: - - yarn + - npm args: - - test + - run + - test:mocha diff --git a/package.json b/package.json index a3d4fb1..ef741da 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-cheer", "displayName": "Cheer", "description": "Have your editor cheer you on while you code!", - "version": "0.0.1", + "version": "1.0.0", "engines": { "vscode": "^1.29.0" }, @@ -34,7 +34,8 @@ }, "scripts": { "postinstall": "node ./node_modules/vscode/bin/install", - "test": "node ./node_modules/vscode/bin/test" + "test": "node ./node_modules/vscode/bin/test", + "test:mocha": "mocha -u tdd ./test/messages.test.js" }, "publisher": "puregarlic", "author": { -- 2.51.2