File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import assert from 'assert'
44import fs from 'fs'
55import path from 'path'
66import { getParamNames } from '../../utils.js'
7+ import { fileURLToPath } from 'url'
8+ import { dirname } from 'path'
9+
10+ const __filename = fileURLToPath ( import . meta. url )
11+ const __dirname = dirname ( __filename )
712
813const createTestFile = ( ) => {
914 assert ( global . output_dir , 'global.output_dir must be set' )
Original file line number Diff line number Diff line change 11import express from 'express'
22import fs from 'fs'
33import path from 'path'
4+ import { fileURLToPath } from 'url'
5+ import { dirname } from 'path'
6+
7+ const __filename = fileURLToPath ( import . meta. url )
8+ const __dirname = dirname ( __filename )
49
510/**
611 * Internal API test server to replace json-server dependency
You can’t perform that action at this time.
0 commit comments