test: client: key: migrate to ESM

This commit is contained in:
coderiaser 2026-01-28 22:53:36 +02:00
parent 3bc49f02f8
commit 82bb338c1f

View file

@ -1,15 +1,9 @@
'use strict';
import autoGlobals from 'auto-globals';
import supertape from 'supertape';
import {ESC} from './key.mjs';
import {Key, _listener} from './index.mjs';
import {getDOM, getCloudCmd} from './vim/globals.fixture.js';
require('css-modules-require-hook/preset');
const autoGlobals = require('auto-globals');
const supertape = require('supertape');
const {ESC} = require('./key.mjs');
const {Key, _listener} = require('./index.mjs');
const {getDOM, getCloudCmd} = require('./vim/globals.fixture');
const test = autoGlobals(supertape);
const {stub} = supertape;