Skip to content

Commit 05c4284

Browse files
authored
Merge pull request #18 from Yukaii:feature/test-with-mocha
Replace jstest with mocha
2 parents edc4a91 + 7eb8247 commit 05c4284

File tree

14 files changed

+2535
-480
lines changed

14 files changed

+2535
-480
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ jobs:
2222
npm install
2323
npm run build --if-present
2424
npm test
25+
npm run test:browser

karma.conf.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
process.env.CHROME_BIN = require('puppeteer').executablePath()
2+
3+
module.exports = function(config) {
4+
config.set({
5+
browsers: ['ChromeHeadless'],
6+
7+
frameworks: ['mocha', 'chai'],
8+
9+
files: [
10+
'tests/spec/*.test.js'
11+
],
12+
13+
singleRun: true,
14+
15+
client: {
16+
mocha: {
17+
require: [
18+
require.resolve('./dist/js/emojify-browser.min.js')
19+
]
20+
}
21+
}
22+
})
23+
}

0 commit comments

Comments
 (0)