Skip to content

Commit

Permalink
less files on the root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Sep 3, 2018
1 parent c8e5a01 commit 96ca441
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
},
"scripts": {
"build": "rollup -c && rollup -c --environment PROD",
"browserstack": "npm run build && cross-env browser=true karma start karma.conf.js",
"browserstack": "npm run build && cross-env browser=true karma start tests/karma.conf.js",
"coveralls": "shx cat tests/coverage/lcov.info | coveralls",
"dev": "rollup --environment DEV -c -w",
"js-lint": "eslint ./src ./tests",
"prejs-test": "cross-env NODE_ENV=test rollup -c --environment TEST",
"js-test": "karma start karma.conf.js",
"js-test": "karma start tests/karma.conf.js",
"release": "npm run build && standard-version",
"test": "npm run js-lint && npm run js-test"
},
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions karma.conf.js → tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ const {
browsersKeys,
} = require('./browsers')

const coveragePath = path.resolve(__dirname, 'tests/coverage')
const coveragePath = path.resolve(__dirname, 'coverage')
const browserTest = process.env.browser === 'true'

module.exports = function(config) {
const conf = {
basePath: '../',
frameworks: ['chai', 'mocha', 'sinon'],
files: [
'tests/coverage/bs-custom-file-input.js',
'tests/polyfill.js',
'tests/index.spec.js',
'tests/util.spec.js',
'tests/units/index.spec.js',
'tests/units/util.spec.js',
],
exclude: [
'tests/*.html',
Expand Down
4 changes: 2 additions & 2 deletions tests/mocha.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
mocha.setup('bdd')
window.expect = chai.expect
</script>
<script src="index.spec.js"></script>
<script src="util.spec.js"></script>
<script src="units/index.spec.js"></script>
<script src="units/util.spec.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
mocha.checkLeaks()
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 96ca441

Please sign in to comment.