I would like to use import {AssertionError} from 'assert'; but cannot because power-assert does not echo named exports. All I can do is either abuse import {AssertionError} from 'node:assert; since this bypasses the power-assert babel plugin, or import assert from 'assert'; const {AssertionError} = assert;.
I would like to use
import {AssertionError} from 'assert';but cannot becausepower-assertdoes not echo named exports. All I can do is either abuseimport {AssertionError} from 'node:assert;since this bypasses thepower-assertbabel plugin, orimport assert from 'assert'; const {AssertionError} = assert;.