@projectcaluma/ember-testing 10.2.0-beta.2 → 11.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [@projectcaluma/ember-testing-v11.0.0-beta.1](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v10.2.0-beta.2...@projectcaluma/ember-testing-v11.0.0-beta.1) (2022-02-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **validation:** sync format validator validation with backend ([ee66968](https://github.com/projectcaluma/ember-caluma/commit/ee66968230b9f0e4c5a4df8bdb3f8e58b44b5b82))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **validation:** Use the `formatValidators` property of the backend to store and read
12
+ format validators instead of the `meta.formatValidators` so the backend
13
+ validates as well. For more information on how to migrate check the
14
+ migration guide to v11.
15
+
1
16
  # [@projectcaluma/ember-testing-v10.2.0-beta.2](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v10.2.0-beta.1...@projectcaluma/ember-testing-v10.2.0-beta.2) (2022-01-18)
2
17
 
3
18
 
@@ -1,5 +1,5 @@
1
1
  import { camelize, dasherize, classify } from "@ember/string";
2
- import faker from "@faker-js/faker";
2
+ import { faker } from "@faker-js/faker";
3
3
  import { singularize, pluralize } from "ember-inflector";
4
4
  import { MockList } from "graphql-tools";
5
5
 
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import moment from "moment";
3
3
 
4
4
  export function createBlueprint(server) {
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
  import moment from "moment";
4
4
 
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  const STATUS = ["RUNNING", "COMPLETED", "CANCELED", "SUSPENDED"];
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
@@ -1,4 +1,4 @@
1
- import faker from "@faker-js/faker";
1
+ import { faker } from "@faker-js/faker";
2
2
  import { Factory } from "miragejs";
3
3
 
4
4
  const STATUS = ["READY", "CANCELED", "COMPLETED", "SKIPPED", "SUSPENDED"];
@@ -6,4 +6,5 @@ export default Model.extend({
6
6
  subForm: belongsTo("form", { inverse: null }),
7
7
  rowForm: belongsTo("form", { inverse: null }),
8
8
  defaultAnswer: belongsTo("answer", { inverse: null }),
9
+ formatValidators: hasMany(),
9
10
  });
@@ -5,10 +5,7 @@ module.exports = {
5
5
 
6
6
  afterInstall() {
7
7
  return this.addAddonsToProject({
8
- packages: [
9
- { name: "@projectcaluma/ember-core" },
10
- { name: "ember-cli-mirage" },
11
- ],
8
+ packages: [{ name: "ember-cli-mirage" }],
12
9
  }).then(() => this.addPackagesToProject([{ name: "faker" }]));
13
10
  },
14
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-testing",
3
- "version": "10.2.0-beta.2",
3
+ "version": "11.0.0-beta.1",
4
4
  "description": "Ember addon for testing with Caluma addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -14,14 +14,14 @@
14
14
  "test:ember-compatibility": "ember try:each"
15
15
  },
16
16
  "dependencies": {
17
- "@faker-js/faker": "^6.0.0-alpha.3",
17
+ "@faker-js/faker": "^6.0.0-alpha.5",
18
18
  "broccoli-funnel": "^3.0.8",
19
19
  "broccoli-merge-trees": "^4.2.0",
20
20
  "ember-apollo-client": "^3.2.0",
21
- "ember-auto-import": "^2.3.0",
21
+ "ember-auto-import": "^2.4.0",
22
22
  "ember-cli-babel": "^7.26.11",
23
23
  "ember-cli-htmlbars": "^6.0.1",
24
- "ember-cli-mirage": "^2.3.1",
24
+ "ember-cli-mirage": "^2.4.0",
25
25
  "ember-fetch": "^8.1.1",
26
26
  "ember-inflector": "^4.0.2",
27
27
  "graphql": "^15.8.0",
@@ -33,7 +33,7 @@
33
33
  "devDependencies": {
34
34
  "@ember/optional-features": "2.0.0",
35
35
  "@ember/test-helpers": "2.6.0",
36
- "@embroider/test-setup": "0.50.2",
36
+ "@embroider/test-setup": "1.0.0",
37
37
  "broccoli-asset-rev": "3.0.0",
38
38
  "ember-cli": "3.28.5",
39
39
  "ember-cli-code-coverage": "1.0.3",
@@ -50,12 +50,11 @@
50
50
  "ember-source": "3.28.8",
51
51
  "ember-source-channel-url": "3.0.0",
52
52
  "ember-try": "2.0.0",
53
- "get-graphql-schema": "2.1.2",
54
53
  "graphql-tag": "2.12.6",
55
54
  "loader.js": "4.7.0",
56
55
  "qunit": "2.17.2",
57
56
  "qunit-dom": "2.0.0",
58
- "webpack": "5.66.0"
57
+ "webpack": "5.68.0"
59
58
  },
60
59
  "engines": {
61
60
  "node": "12.* || 14.* || >= 16"