Permalink
Browse files

changes scaffolding to create typescript-based spec setup

  • Loading branch information...
antoniusostermann committed Jan 4, 2019
1 parent 18a61ce commit a2c403358fb3f9ae6e6ba6ec22bacc2359f1ddc8
Showing with 9 additions and 6 deletions.
  1. +1 −1 scaffold/jasmine.json.scaffold
  2. +7 −4 scaffold/{setup.js.scaffold → setup.ts.scaffold}
  3. +1 −1 src/cli.ts
@@ -4,6 +4,6 @@
"**/*[sS]pec.js"
],
"helpers": [
"helpers/**/*.js"
"helpers/**/*.ts"
]
}
@@ -1,12 +1,15 @@
//tslint:disable-next-line
require("reflect-metadata");
const ApplicationInitializer = require("../../application-initializer").ApplicationInitializer;
const AssistantSource = require("assistant-source");

beforeEach(function() {
import { SpecHelper } from "assistant-source";
import { ThisContext } from "../support/this-context";
import { ApplicationInitializer } from "../../application-initializer";

beforeEach(function(this: ThisContext) {
// Get application initializer and initializer main variables
this.applicationInitializer = new ApplicationInitializer();
this.setups = this.applicationInitializer.createAndPrepareSetups();
this.specHelper = new AssistantSource.SpecHelper(this.setups.assistantJs, this.setups.stateMachine);
this.specHelper = new SpecHelper(this.setups.assistantJs, this.setups.stateMachine);
this.inversify = this.specHelper.assistantJs.container.inversifyInstance;

// Register all platforms. For every platform you install, you want to add an entry here.
@@ -77,7 +77,7 @@ export function cli(argv, resolvedApplicationInitializer) {
let copyInstructions = [
["components.ts", "config/components.ts"],
["jasmine.json", "spec/support/jasmine.json"],
["setup.js", "spec/helpers/setup.js"],
["setup.ts", "spec/helpers/setup.ts"],
["application.ts", "app/states/application.ts"],
["main.ts", "app/states/main.ts"],
["example-filter.ts", "app/filters/example-filter.ts"],

0 comments on commit a2c4033

Please sign in to comment.