Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jasmine-ts

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-ts - npm Package Compare versions

Comparing version 0.3.0 to 0.3.2

CHANGELOG.md

48

lib/index.js
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const path = require("path");
const dist_1 = require("ts-node/dist");
const ts_node_1 = require("ts-node");
const yargs_1 = require("yargs");

@@ -21,2 +20,4 @@ const TS_NODE_OPTIONS = [

"compilerOptions",
"transpileOnly",
"typeCheck",
];

@@ -26,7 +27,7 @@ const tsNodeOptions = Object.assign({}, ...TS_NODE_OPTIONS.map((option) => {

return (option === "compilerOptions")
? { compilerOptions: dist_1.parse(yargs_1.argv[option]) }
? { compilerOptions: ts_node_1.parse(yargs_1.argv[option]) }
: { [option]: yargs_1.argv[option] };
}
}));
dist_1.register(tsNodeOptions);
ts_node_1.register(tsNodeOptions);
const Jasmine = require("jasmine");

@@ -37,26 +38,21 @@ const Command = require("jasmine/lib/command");

const command = new Command(path.resolve(), examplesDir, console.log);
const configPath = yargs_1.argv.config || process.env.JASMINE_CONFIG_PATH || "spec/support/jasmine.json";
const initReporters = (config) => {
if (config.reporters && config.reporters.length > 0) {
jasmine.env.clearReporters();
config.reporters.forEach((reporter) => {
const parts = reporter.name.split("#");
const name = parts[0];
const member = parts[1];
const reporterClass = member ? require(name)[member] : require(name);
jasmine.addReporter(new (reporterClass)(reporter.options));
});
}
};
let configJSON = "";
try {
configJSON = fs.readFileSync(path.resolve(configPath), "utf8");
const JASMINE_OPTIONS = [
'--no-color',
'--color',
'--filter=',
'--helper=',
'--require=',
'--stop-on-failure=',
'--fail-fast=',
'--config=',
'--reporter='
];
function jasmineOptionsFilter(argOption) {
return JASMINE_OPTIONS.some(option => argOption.startsWith(option))
|| !argOption.startsWith('--');
}
catch (e) { }
if (configJSON) {
const config = JSON.parse(configJSON);
initReporters(config);
}
const commandOptions = process.argv.slice(2).filter((option) => option.indexOf(configPath) >= 0);
const commandOptions = process.argv
.slice(2)
.filter(jasmineOptionsFilter);
command.run(jasmine, commandOptions);
//# sourceMappingURL=index.js.map
{
"name": "jasmine-ts",
"version": "0.3.0",
"version": "0.3.2",
"description": "Execute jasmine with ts-node",

@@ -8,4 +8,9 @@ "main": "lib/index.js",

"scripts": {
"test": "./node_modules/.bin/tslint index.ts && tsc && node lib/index.js --config=spec/jasmine.json spec/jasmine-ts.spec.ts --compilerOptions='{\"allowJs\": true}'",
"prepublishOnly": "tsc"
"precompile": "rimraf lib",
"compile": "tsc --project tsconfig.json",
"lint": "tslint -p tsconfig.json",
"jasmineTs": "node lib/index.js --config=spec/jasmine.json spec/jasmine-ts.spec.ts --transpileOnly --compilerOptions='{\"allowJs\": true}' --fake-option",
"test": "npm run lint && npm run compile && npm run jasmineTs",
"prepublishOnly": "npm run compile",
"release": "standard-version"
},

@@ -24,2 +29,5 @@ "repository": {

"author": "Sven Reglitzki <sreglitzki@gmail.com>",
"maintainers": [
"Róbert Kiss <ert78gb@gmail.com>"
],
"license": "MIT",

@@ -30,23 +38,25 @@ "bugs": {

"homepage": "https://github.com/svi3c/jasmine-ts#readme",
"files": [
"lib"
],
"dependencies": {
"yargs": "^8.0.2"
"yargs": "^16.2.0"
},
"peerDependencies": {
"jasmine": ">= 2.0",
"ts-node": ">=3.2.0 <8",
"typescript": ">=2.4.1"
"jasmine": ">=3.4",
"ts-node": ">=3.2.0 <=10",
"typescript": ">=3.5.2"
},
"devDependencies": {
"@types/jasmine": "^2.5.53",
"@types/node": "^8.0.12",
"@types/yargs": "^8.0.1",
"jasmine": ">= 2.0",
"jasmine-spec-reporter": "^4.1.1",
"ts-node": ">=3.2.0 <8",
"tslint": "^5.5.0",
"typescript": ">=2.4.1"
},
"engines": {
"node": ">= 5.12"
"@types/jasmine": "^3.6.3",
"@types/node": "^14.14.25",
"@types/yargs": "^16.0.0",
"jasmine": "^3.6.4",
"jasmine-spec-reporter": "^6.0.0",
"rimraf": "^3.0.2",
"standard-version": "^9.1.0",
"ts-node": "^9.1.1",
"tslint": "^6.1.3",
"typescript": "^4.1.3"
}
}
# jasmine-ts
[![Build Status](https://travis-ci.org/svi3c/jasmine-ts.svg?branch=master)](https://travis-ci.org/svi3c/jasmine-ts)
![CI](https://github.com/svi3c/jasmine-ts/workflows/Node.js%20CI/badge.svg)

@@ -5,0 +5,0 @@ A simplification for running [jasmine](https://www.npmjs.com/package/jasmine) with

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc