orchid-orm-test-factory 0.2.30 → 0.2.32

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.
@@ -1,53 +1,53 @@
1
1
 
2
- > orchid-orm-test-factory@0.2.29 test:ci /home/romeo/dev/my/orchid-orm/packages/test-factory
2
+ > orchid-orm-test-factory@0.2.30 test:ci /home/romeo/dev/my/orchid-orm/packages/test-factory
3
3
  > jest --coverage --coverageReporters json-summary
4
4
 
5
- PASS src/factory.test.ts (9.044 s)
5
+ PASS src/factory.test.ts (9.103 s)
6
6
  factory
7
7
  sequence and sequenceDistance
8
8
  ✓ should depend on process.env.JEST_WORKER_ID when it is defined (3 ms)
9
9
  ✓ should allow to override sequence (1 ms)
10
10
  ✓ should allow to override sequence distance (1 ms)
11
11
  build
12
- ✓ should build an object for the table (23 ms)
13
- ✓ should accept data with values to override result (4 ms)
14
- ✓ should accept data with functions to override result (10 ms)
15
- ✓ should limit long strings with 1000 by default (4 ms)
12
+ ✓ should build an object for the table (45 ms)
13
+ ✓ should accept data with values to override result (23 ms)
14
+ ✓ should accept data with functions to override result (19 ms)
15
+ ✓ should limit long strings with 1000 by default (2 ms)
16
16
  ✓ should respect max which is set on column (2 ms)
17
17
  ✓ should allow to override maxTextLength (2 ms)
18
18
  omit
19
- ✓ should allow to build data with omitted fields (2 ms)
19
+ ✓ should allow to build data with omitted fields (11 ms)
20
20
  pick
21
- ✓ should allow to build data with picked fields (2 ms)
21
+ ✓ should allow to build data with picked fields (1 ms)
22
22
  create
23
- ✓ should create record with generated data, except serial primary keys, datetime numbers should be the same in the record and to be around now (51 ms)
24
- ✓ should create record with overridden data (5 ms)
25
- ✓ should create record with nested create (23 ms)
23
+ ✓ should create record with generated data, except serial primary keys, datetime numbers should be the same in the record and to be around now (70 ms)
24
+ ✓ should create record with overridden data (21 ms)
25
+ ✓ should create record with nested create (20 ms)
26
26
  createList
27
- ✓ should create a list of records, datetime numbers should be the same in one record and increase for each next record (8 ms)
28
- ✓ should create a list of records with overridden data (13 ms)
27
+ ✓ should create a list of records, datetime numbers should be the same in one record and increase for each next record (19 ms)
28
+ ✓ should create a list of records with overridden data (21 ms)
29
29
  set
30
- ✓ should set data to override result and work with build (2 ms)
31
- ✓ should set data to override result and work with buildList (3 ms)
32
- ✓ should set data to override result and work with create (13 ms)
33
- ✓ should set data to override result and work with createList (6 ms)
30
+ ✓ should set data to override result and work with build (10 ms)
31
+ ✓ should set data to override result and work with buildList (4 ms)
32
+ ✓ should set data to override result and work with create (23 ms)
33
+ ✓ should set data to override result and work with createList (7 ms)
34
34
  custom methods
35
35
  ✓ should respect omitted fields and build a proper object (2 ms)
36
36
  ✓ should respect picked fields and build a proper object
37
37
  unique columns
38
- ✓ should prefix unique text column with sequence and space (7 ms)
38
+ ✓ should prefix unique text column with sequence and space (1 ms)
39
39
  ✓ should prefix unique email with sequence and dash (1 ms)
40
- ✓ should prefix unique url with sequence and dash (1 ms)
41
- ✓ should set value no longer than max (1 ms)
42
- ✓ should set value with correct length when length option is set (1 ms)
43
- ✓ should use sequence for a number for unique numeric column (1 ms)
40
+ ✓ should prefix unique url with sequence and dash (2 ms)
41
+ ✓ should set value no longer than max
42
+ ✓ should set value with correct length when length option is set
43
+ ✓ should use sequence for a number for unique numeric column (14 ms)
44
+ ✓ should support gt option for unique numeric column
44
45
  ✓ should support gt option for unique numeric column (1 ms)
45
- ✓ should support gt option for unique numeric column (1 ms)
46
- ✓ should leave explicitly set values as is
46
+ ✓ should leave explicitly set values as is (1 ms)
47
47
  ✓ should work in buildList (1 ms)
48
48
 
49
49
  Test Suites: 1 passed, 1 total
50
50
  Tests: 32 passed, 32 total
51
51
  Snapshots: 0 total
52
- Time: 9.174 s
52
+ Time: 9.281 s
53
53
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # orchid-orm-test-factory
2
2
 
3
+ ## 0.2.32
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - pqb@0.9.14
9
+ - orchid-orm@1.5.26
10
+ - orchid-orm-schema-to-zod@0.2.20
11
+
12
+ ## 0.2.31
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+ - orchid-orm@1.5.25
18
+
3
19
  ## 0.2.30
4
20
 
5
21
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchid-orm-test-factory",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "description": "Orchid ORM factories for tests",
5
5
  "homepage": "https://orchid-orm.netlify.app/guide/orm-test-factories.html",
6
6
  "repository": {
@@ -40,9 +40,9 @@
40
40
  "dependencies": {
41
41
  "@anatine/zod-mock": "^3.6.0",
42
42
  "@faker-js/faker": "^7.6.0",
43
- "orchid-orm": "1.5.24",
44
- "orchid-orm-schema-to-zod": "0.2.19",
45
- "pqb": "0.9.13",
43
+ "orchid-orm": "1.5.26",
44
+ "orchid-orm-schema-to-zod": "0.2.20",
45
+ "pqb": "0.9.14",
46
46
  "zod": "^3.19.1"
47
47
  },
48
48
  "devDependencies": {
@@ -63,7 +63,8 @@
63
63
  "typescript": "^4.7.4"
64
64
  },
65
65
  "scripts": {
66
- "test": "jest",
66
+ "test": "jest --watch --verbose false",
67
+ "check": "jest",
67
68
  "test:ci": "jest --coverage --coverageReporters json-summary",
68
69
  "build": "rimraf ./dist/ && rollup -c --rollup.config"
69
70
  }