folio
Version:
A customizable test framework to build your own test frameworks. Foundation for the [Playwright test runner](https://github.com/microsoft/playwright-test).
39 lines • 1.78 kB
JavaScript
/**
* Copyright 2019 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.folio = exports.currentTestInfo = exports.config = exports.expect = void 0;
var expect_1 = require("./expect");
Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return expect_1.expect; } });
const spec_1 = require("./spec");
var fixtures_1 = require("./fixtures");
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return fixtures_1.config; } });
Object.defineProperty(exports, "currentTestInfo", { enumerable: true, get: function () { return fixtures_1.currentTestInfo; } });
const builder = spec_1.rootFixtures.extend();
builder.testWorkerIndex.init(async ({}, runTest) => {
// Worker injects the value for this one.
await runTest(undefined);
}, { scope: 'worker' });
builder.testInfo.init(async ({}, runTest) => {
// Worker injects the value for this one.
await runTest(undefined);
});
builder.testParametersPathSegment.init(async ({}, runTest) => {
await runTest('');
});
exports.folio = builder.build();
//# sourceMappingURL=index.js.map
;