nole 2.1.2 → 2.2.1

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 (49) hide show
  1. package/README.md +47 -0
  2. package/bin/nole.js +80 -58
  3. package/dist/data.js +2 -2
  4. package/dist/data.js.map +1 -1
  5. package/dist/decorators.d.ts +2 -1
  6. package/dist/decorators.d.ts.map +1 -1
  7. package/dist/decorators.js +51 -27
  8. package/dist/decorators.js.map +1 -1
  9. package/dist/index.d.ts +3 -3
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +3 -3
  12. package/dist/index.js.map +1 -1
  13. package/dist/run.d.ts.map +1 -1
  14. package/dist/run.js +40 -24
  15. package/dist/run.js.map +1 -1
  16. package/dist/test.d.ts.map +1 -1
  17. package/dist/utils/executor.js +1 -1
  18. package/dist/utils/executor.test.js +1 -1
  19. package/dist/utils/executor.test.js.map +1 -1
  20. package/dist/utils/time_difference.d.ts.map +1 -1
  21. package/dist/utils/time_difference.js.map +1 -1
  22. package/dist/utils/time_difference.test.js.map +1 -1
  23. package/dist/utils/time_factor.d.ts.map +1 -1
  24. package/dist/utils/time_factor.js +19 -14
  25. package/dist/utils/time_factor.js.map +1 -1
  26. package/dist/utils/time_factor.test.js +1 -1
  27. package/package.json +1 -1
  28. package/src/data.ts +3 -3
  29. package/src/decorators.ts +106 -48
  30. package/src/dynamic.ts +1 -1
  31. package/src/index.ts +13 -4
  32. package/src/run.ts +106 -42
  33. package/src/test.ts +10 -8
  34. package/src/utils/executor.test.ts +3 -3
  35. package/src/utils/executor.ts +2 -2
  36. package/src/utils/time_difference.test.ts +1 -1
  37. package/src/utils/time_difference.ts +1 -3
  38. package/src/utils/time_factor.test.ts +1 -1
  39. package/src/utils/time_factor.ts +24 -9
  40. package/test/basic.test.ts +8 -4
  41. package/test/before.test.ts +54 -0
  42. package/test/clean-up.test.ts +3 -5
  43. package/test/dynamic-skip.test.ts +1 -1
  44. package/test/dynamic.test.ts +1 -1
  45. package/test/hook.test.ts +3 -3
  46. package/test/multi-dependency.test.ts +31 -9
  47. package/test/multiple-uppercased-chars.test.ts +8 -7
  48. package/test/skip-all.test.ts +7 -7
  49. package/test/turkish-chars.test.ts +8 -7
@@ -1,18 +1,19 @@
1
1
  import { Spec, Dependencies } from "../src/index.js";
2
- import { strict as assert } from 'assert';
2
+ import { strict as assert } from "assert";
3
3
 
4
4
  export class IOTPOTest {
5
5
  @Spec()
6
- async test() { }
6
+ async test() {}
7
7
  }
8
8
 
9
- @Dependencies([
10
- IOTPOTest
11
- ])
9
+ @Dependencies([IOTPOTest])
12
10
  export class MultipleUppercasedCharsTest {
13
11
  @Spec()
14
12
  async check() {
15
- assert.notEqual(this['IOTPOTest'], undefined, 'turkish character test is failed');
13
+ assert.notEqual(
14
+ this["IOTPOTest"],
15
+ undefined,
16
+ "turkish character test is failed"
17
+ );
16
18
  }
17
19
  }
18
-
@@ -1,19 +1,19 @@
1
- import * as assert from 'assert';
1
+ import * as assert from "assert";
2
2
  import { Spec, Skip } from "../src/index.js";
3
- import { SkipClass } from '../src/decorators.js';
3
+ import { SkipClass } from "../src/decorators.js";
4
4
 
5
- @SkipClass('skip all class')
5
+ @SkipClass("skip all class")
6
6
  export class SkipAllTest {
7
7
  @Spec()
8
- async wontRun() { }
8
+ async wontRun() {}
9
9
 
10
- @Skip('won\'t run too')
10
+ @Skip("won't run too")
11
11
  @Spec()
12
- async wontRunToo() { }
12
+ async wontRunToo() {}
13
13
  }
14
14
 
15
15
  @SkipClass()
16
16
  export class SkipAllWithoutReason {
17
17
  @Spec()
18
- async wontRun() { }
18
+ async wontRun() {}
19
19
  }
@@ -1,18 +1,19 @@
1
1
  import { Spec, Dependencies } from "../src/index.js";
2
- import { strict as assert } from 'assert';
2
+ import { strict as assert } from "assert";
3
3
 
4
4
  export class ICharacterTest {
5
5
  @Spec()
6
- async test() { }
6
+ async test() {}
7
7
  }
8
8
 
9
- @Dependencies([
10
- ICharacterTest
11
- ])
9
+ @Dependencies([ICharacterTest])
12
10
  export class TurkishCharacterTest {
13
11
  @Spec()
14
12
  async check() {
15
- assert.notEqual(this['iCharacterTest'], undefined, 'turkish character test is failed');
13
+ assert.notEqual(
14
+ this["iCharacterTest"],
15
+ undefined,
16
+ "turkish character test is failed"
17
+ );
16
18
  }
17
19
  }
18
-