Skip to content

Commit

Permalink
Initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochet2 authored Sep 24, 2023
1 parent fdbbd9c commit fac1a1e
Showing 1 changed file with 56 additions and 29 deletions.
85 changes: 56 additions & 29 deletions src/sscce-sequelize-6.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DataTypes, Model, QueryTypes } from 'sequelize';
import { DataTypes, Model, QueryTypes, Op } from 'sequelize';

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Cannot find name 'Bar'.

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

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

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

View workflow job for this annotation

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

Cannot find name 'Bar'.
import { createSequelize6Instance } from '../setup/create-sequelize-instance';
import { expect } from 'chai';
import sinon from 'sinon';
Expand Down Expand Up @@ -35,39 +35,66 @@ export async function run() {
modelName: 'Foo',
});

Bar.init({

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 10)

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 10)

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 38 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true
},
fooId: {
type: DataTypes.INTEGER,
},
data: DataTypes.TEXT,
}, {
sequelize,
modelName: 'Bar',
});

Foo.hasMany(Bar);

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 10)

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 10)

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 53 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.
Bar.belongsTo(Foo);

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 10)

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 10)

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 54 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

// You can use sinon and chai assertions directly in your SSCCE.
const spy = sinon.spy();
sequelize.afterBulkSync(() => spy());
await sequelize.sync({ force: true });
expect(spy).to.have.been.called;

await Promise.all([
sequelize.query(`
insert into Foo (
id, name
)
select
i::integer,
md5(random()::text)
from generate_series(1, 1000000) s(i)
`),
sequelize.query(`
insert into Bar (
id, fooId, data
)
select
i::integer,
i::integer,
md5(random()::text)
from generate_series(1, 1000000) s(i)
`),
]);

const result1 = await sequelize.query(
`
INSERT INTO "Foos" (id, name)
VALUES (1, 'steve')
ON CONFLICT (id) DO UPDATE
SET name='steve'
RETURNING id, name
`,
{
type: QueryTypes.RAW,
}
);

const result2 = await sequelize.query(
`
-- HAX
INSERT INTO "Foos" (id, name)
VALUES (1, 'steve')
ON CONFLICT (id) DO UPDATE
SET name='steve'
RETURNING id, name
`,
{
type: QueryTypes.RAW,
}
);
const offset = 0;
const limit = 10;
const result = await Foo.FindAll({

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 10)

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 10)

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?

Check failure on line 86 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Property 'FindAll' does not exist on type 'typeof Foo'. Did you mean 'findAll'?
logging: console.log,
benchmark: true,
distinct: true,
limit,
offset,
include: {
model: Bar,

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 14)

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 10)

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MariaDB 10.3 (node 16)

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 10)

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 14)

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

GitHub Actions / MySQL 5.7 (node 16)

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.

Check failure on line 93 in src/sscce-sequelize-6.ts

View workflow job for this annotation

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

Cannot find name 'Bar'.
required: true,
where: { id: { [Op.gt]: 1 } }
},
});

console.log(result1, result2);
expect(result1).to.deep.equal(result2);
console.log(result);
}

0 comments on commit fac1a1e

Please sign in to comment.