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.
- package/.turbo/turbo-test:ci.log +25 -25
- package/CHANGELOG.md +16 -0
- package/package.json +6 -5
package/.turbo/turbo-test:ci.log
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
|
|
2
|
-
> orchid-orm-test-factory@0.2.
|
|
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.
|
|
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 (
|
|
13
|
-
✓ should accept data with values to override result (
|
|
14
|
-
✓ should accept data with functions to override result (
|
|
15
|
-
✓ should limit long strings with 1000 by default (
|
|
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 (
|
|
19
|
+
✓ should allow to build data with omitted fields (11 ms)
|
|
20
20
|
pick
|
|
21
|
-
✓ should allow to build data with picked fields (
|
|
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 (
|
|
24
|
-
✓ should create record with overridden data (
|
|
25
|
-
✓ should create record with nested 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 (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 (
|
|
28
|
-
✓ should create a list of records with overridden data (
|
|
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 (
|
|
31
|
-
✓ should set data to override result and work with buildList (
|
|
32
|
-
✓ should set data to override result and work with create (
|
|
33
|
-
✓ should set data to override result and work with createList (
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
44
|
-
"orchid-orm-schema-to-zod": "0.2.
|
|
45
|
-
"pqb": "0.9.
|
|
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
|
}
|