Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sscce-sequelize-7.ts #258

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions src/sscce-sequelize-7.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { DataTypes, Model } from '@sequelize/core';

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'id' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'id' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 10)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 1 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / SQLite (sequelize 6 & 7, node 14)

Property 'up' does not exist on type 'typeof User'.
import { createSequelize7Instance } from '../setup/create-sequelize-instance';
import { expect } from 'chai';
import sinon from 'sinon';

// if your issue is dialect specific, remove the dialects you don't need to test on.
export const testingOnDialects = new Set(['mssql', 'sqlite', 'mysql', 'mariadb', 'postgres', 'postgres-native']);
export const testingOnDialects = new Set([ 'postgres', 'postgres-native']);

// You can delete this file if you don't want your SSCCE to be tested against Sequelize 7

Expand All @@ -21,13 +21,14 @@
},
});

class Foo extends Model {}
class User extends Model {}

Foo.init({
name: DataTypes.TEXT,
User.init({
name: DataTypes.STRING,
password: DataTypes.STRING
}, {
sequelize,
modelName: 'Foo',
modelName: 'User',
});

// You can use sinon and chai assertions directly in your SSCCE.
Expand All @@ -36,6 +37,20 @@
await sequelize.sync({ force: true });
expect(spy).to.have.been.called;

console.log(await Foo.create({ name: 'TS foo' }));
expect(await Foo.count()).to.equal(1);
const attributes = ['name'];
const created = await User.create({ name: 'Foo', password: 'pass' }, {returning: attributes});
console.log(created);
expect(created.name).to.equal('Foo);

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 43 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.
expect(created.password).to.be.undefined;

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Argument of type 'Assertion' is not assignable to parameter of type 'string'.

Check failure on line 44 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.
const updatedWithChange = await User.update({name:'Bar'}, {where: {id: created.id}, returning: attributes, individualHooks: true});

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 45 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.
console.log(updatedWithChange)
expect(updatedWithChange[1][0].name).to.equal('Bar');

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 47 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.
expect(updatedWithChange[1][0].password).to.be.undefined;

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 48 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.
const updatedNoChange = await User.update({name:undefined}, {where: {id: created.id}, returning: attributes, individualHooks: true});

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'id' does not exist on type 'User'.

Check failure on line 49 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'id' does not exist on type 'User'.
console.log(updatedNoChange)
expect(updatedWithChange[1][0].name).to.equal('Bar');

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'name' does not exist on type 'User'.

Check failure on line 51 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'name' does not exist on type 'User'.
expect(updatedWithChange[1][0].password).to.be.undefined;

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'password' does not exist on type 'User'.

Check failure on line 52 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'password' does not exist on type 'User'.

//expect(await Foo.count()).to.equal(1);
await User.up

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2017 (sequelize 6 & 7, node 14)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 10 (native) (sequelize 6 & 7, node 14)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MSSQL 2019 (sequelize 6 & 7, node 14)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 16)

Property 'up' does not exist on type 'typeof User'.

Check failure on line 55 in src/sscce-sequelize-7.ts

View workflow job for this annotation

GitHub Actions / Postgres 9.5 (native) (sequelize 6 & 7, node 14)

Property 'up' does not exist on type 'typeof User'.
}
Loading