-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
Hi!
Changing ember-data imports brings models from 100% to 0% code coverage
Test
test("exists", function(assert) {
const model = run(() => this.owner.lookup("service:store").createRecord("some-model"));
assert.ok(!!model);
});Before (100% code coverage)
import classic from "ember-classic-decorator";
import DS from "ember-data";
const { Model, attr, hasMany, belongsTo } = DS;
@classic
export default class SomeModel extends Model {
@belongsTo
one;
@hasMany
two;
@attr("string")
three;
@attr
chaChaCha;
}After (0% code coverage)
import classic from "ember-classic-decorator";
import Model, { attr, hasMany, belongsTo } from "@ember-data/model";
@classic
export default class SomeModel extends Model {
@belongsTo
one;
@hasMany
two;
@attr("string")
three;
@attr
chaChaCha;
}Is this an expected behavior?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels