Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 22
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: 22
- name: npm install, build, and test
run: |
npm install
Expand Down
8 changes: 7 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process.env.CHROME_BIN = require("puppeteer").executablePath();

module.exports = function (config) {
config.set({
browsers: ["ChromeHeadless"],
browsers: ["ChromeHeadlessNoSandbox"],

frameworks: ["mocha", "chai"],

Expand All @@ -17,5 +17,11 @@ module.exports = function (config) {
},

listenAddress: "::",
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox"],
},
},
});
};
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"bugs": {
"url": "https://github.com/hackmdio/emojify.js/issues"
},
"standard": {
"ignore": [
"dist/",
"tests/**/*.js",
"karma.conf.js"
]
},
"devDependencies": {
"@open-wc/karma-esm": "^4.0.0",
"@rollup/plugin-replace": "^6.0.2",
Expand Down
10 changes: 5 additions & 5 deletions tests/node.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import jsdom from "jsdom-global";
import { assert } from "chai";
import emojify from "../dist/js/index.min.js";
import jsdom from 'jsdom-global'
import { assert } from 'chai'
import emojify from '../dist/js/index.min.js'

jsdom();
jsdom()

global.assert = assert;
global.assert = assert
global.emojify = emojify