Skip to content

Commit ba3f8cb

Browse files
committed
feat(test): create test script and use karma
1 parent 049ff73 commit ba3f8cb

File tree

9 files changed

+855
-23
lines changed

9 files changed

+855
-23
lines changed

bin/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ process.env.DEBUG = 'pixore:front-scripts, pixore:error'
44

55
const {input} = require('parse-cmd-args')()
66
const debug = require('debug')('pixore:front-scripts')
7+
const path = require('path')
8+
9+
debug(process.env.PWD)
10+
debug(path.resolve(__dirname))
11+
debug(process.cwd())
712

813
switch (input) {
914
case 'start':
1015
require('../src/scripts/start')
1116
break
17+
case 'test':
18+
require('../src/scripts/test')
19+
break
1220
default:
1321
debug('Unknown script "' + input + '".')
1422
break

0 commit comments

Comments
 (0)