const { assert } = require('chai');

const KeyCode = require('./dist/keycode.cjs.js');
const { defineTests } = require('./dist/test-definitions.cjs');

// Tests for Node (Common JS) Module.
defineTests(KeyCode, {
  test: it,
  assertEquals: assert.equal
});

const { assert } = require('chai');

const KeyCode = require('./dist/keycode.cjs');
const { defineTests } = require('./dist/test-definitions.cjs');

// Tests for Node (Common JS) Module.
defineTests(KeyCode, {
  test: it,
  assertEquals: assert.equal
});

Remove .js from the require
Remove .js from the require