mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: move unit tests (#10498)
This commit is contained in:
parent
d0d738d2fc
commit
0caf124182
@ -34,7 +34,7 @@
|
||||
"test:firefox:headful": "wireit",
|
||||
"test:firefox:headless": "wireit",
|
||||
"test:firefox": "wireit",
|
||||
"test": "cross-env PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT=20000 node tools/mochaRunner/lib/main.js --min-tests 1026",
|
||||
"test": "cross-env PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT=20000 node tools/mochaRunner/lib/main.js --min-tests 1003",
|
||||
"validate-licenses": "tsx tools/third_party/validate-licenses.ts",
|
||||
"unit": "npm run unit --workspaces --if-present"
|
||||
},
|
||||
|
@ -14,15 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {describe, it} from 'node:test';
|
||||
|
||||
import expect from 'expect';
|
||||
import {TimeoutError} from 'puppeteer';
|
||||
|
||||
import {
|
||||
DeviceRequestPrompt,
|
||||
DeviceRequestPromptDevice,
|
||||
DeviceRequestPromptManager,
|
||||
} from 'puppeteer-core/internal/common/DeviceRequestPrompt.js';
|
||||
import {EventEmitter} from 'puppeteer-core/internal/common/EventEmitter.js';
|
||||
import {TimeoutSettings} from 'puppeteer-core/internal/common/TimeoutSettings.js';
|
||||
} from './DeviceRequestPrompt.js';
|
||||
import {TimeoutError} from './Errors.js';
|
||||
import {EventEmitter} from './EventEmitter.js';
|
||||
import {TimeoutSettings} from './TimeoutSettings.js';
|
||||
|
||||
class MockCDPSession extends EventEmitter {
|
||||
async send(): Promise<any> {}
|
@ -14,8 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {describe, it} from 'node:test';
|
||||
|
||||
import expect from 'expect';
|
||||
import {interpolateFunction} from 'puppeteer-core/internal/util/Function.js';
|
||||
|
||||
import {interpolateFunction} from './Function.js';
|
||||
|
||||
describe('Function', function () {
|
||||
describe('interpolateFunction', function () {
|
Loading…
Reference in New Issue
Block a user