workspaces/arborist/test/signals.js
raw| 1 | const t = require('tap') |
| 2 | |
| 3 | const runTest = platform => async t => { |
| 4 | global.__ARBORIST_FAKE_PLATFORM__ = process.platform === platform ? null |
| 5 | : platform |
| 6 | t.matchSnapshot(t.mock('../lib/signals.js')) |
| 7 | } |
| 8 | |
| 9 | t.test('signals on darwin', runTest('darwin')) |
| 10 | t.test('signals on linux', runTest('linux')) |
| 11 | t.test('signals on win32', runTest('win32')) |