@servant/servant-jasmine-browser
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Servant Servant jasmine browser

Quick references: Command line, Node API, servant.json, dev-server

What is it?

Servant jasmine browser is module for Servant build tool that is intended for running tests in browser environment. Module can be included as module @servant/servant-jasmine-browser or can be forked from main nodejs process. If you want to run it as process, you need send message with data to say module that you need some work.

import { ServantJson, PackageJson } from "@servant/servant-data";

export type TestsJson = {
	cwd: string;
	entry: string | null;
	extensions: Array<string>;
	externals: Array<string>;
	packageJson: PackageJson.PackageJsonInfo | null;
	servantJson: ServantJson.ServantJsonInfo | null;
};

Message must contain cwd (working directory path) and entry that is used as a base directory for loading test from.

Property extensions is array of extensions that are resolved by tests.

Property externals is a list of external libraries that are necessary for running tests but there are not a part of your module.

Property packageJson is PackageJsonInfo for package.json.

Property servantJson is ServantJsonInfo for servant.json.

Playwright

This module optionally can use playwright module from Microsoft. This module is used to multi browser testing of your web browsers modules. By settings that is done in testing property in servant.json you can setup test to run in Chrome, Firefox and Chromium browsers with emulating more than 70 different devices!

License

Licensed under GPLv3

Playwright is licensed under Apache-2.0

Package Sidebar

Install

npm i @servant/servant-jasmine-browser

Weekly Downloads

1

Version

1.0.14

License

GPL-3.0-or-later

Unpacked Size

87.3 kB

Total Files

11

Last publish

Collaborators

  • hacker.stanislav