factorio-test 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +8 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -34,6 +34,8 @@ declare namespace FactorioTest {
34
34
  after_test_run?(): void
35
35
 
36
36
  sound_effects: boolean
37
+
38
+ load_luassert: boolean
37
39
  }
38
40
 
39
41
  type TestFn = () => void
@@ -62,16 +64,18 @@ declare namespace FactorioTest {
62
64
  }
63
65
 
64
66
  /** @noSelf */
65
- export interface TestBuilder<F extends (...args: any) => void = TestFn> {
66
- after_script_reload(func: F): TestBuilder<F>
67
- after_mod_reload(func: F): TestBuilder<F>
67
+ export interface TestBuilder<F extends (this: void, ...args: any) => void = TestFn> {
68
+ after_reload_script(func: F): TestBuilder<F>
69
+ after_reload_mods(func: F): TestBuilder<F>
68
70
  }
69
71
 
70
72
  /** @noSelf */
71
73
  interface DescribeBlockCreatorBase {
72
74
  (name: string, func: TestFn): void
73
75
 
74
- each<const V extends readonly any[]>(values: readonly V[]): (name: string, func: (...values: MutableValues<V>) => void) => void
76
+ each<const V extends readonly any[]>(
77
+ values: readonly V[],
78
+ ): (name: string, func: (this: void, ...values: MutableValues<V>) => void) => void
75
79
  each<const T>(values: readonly T[]): (name: string, func: (value: T) => void) => void
76
80
  }
77
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-test",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Type definitions for using Factorio Test with TypescriptToLua",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/GlassBricks/FactorioTest",