File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 7171 "get-node" : " ^15.0.0" ,
7272 "is-in-ci" : " ^1.0.0" ,
7373 "is-running" : " ^2.1.0" ,
74+ "log-process-errors" : " ^12.0.1" ,
7475 "path-exists" : " ^5.0.0" ,
7576 "path-key" : " ^4.0.0" ,
7677 "tempfile" : " ^5.0.0" ,
Original file line number Diff line number Diff line change 11import path from 'node:path' ;
22import process from 'node:process' ;
33import { fileURLToPath } from 'node:url' ;
4+ import logProcessErrors from 'log-process-errors' ;
45import pathKey from 'path-key' ;
56
7+ // Make tests fail if any warning (such as a deprecation warning) is emitted
8+ logProcessErrors ( {
9+ onError ( error , event ) {
10+ if ( event === 'warning' ) {
11+ throw error ;
12+ }
13+ } ,
14+ } ) ;
15+
616export const PATH_KEY = pathKey ( ) ;
717export const FIXTURES_DIRECTORY_URL = new URL ( '../fixtures/' , import . meta. url ) ;
818// @todo : use import.meta.dirname after dropping support for Node <20.11.0
You can’t perform that action at this time.
0 commit comments