Skip to content
Closed
Show file tree
Hide file tree
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
11 changes: 6 additions & 5 deletions src/sscce-sequelize-6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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 6

Expand All @@ -25,16 +25,17 @@ export async function run() {

Foo.init({
name: DataTypes.TEXT,
genre: {
type:DataTypes.ENUM('a', 'b'),
comment: 'Genre of the foo',
}
}, {
sequelize,
modelName: 'Foo',
});

// 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 sequelize.sync({ alter: true });

console.log(await Foo.create({ name: 'TS foo' }));
expect(await Foo.count()).to.equal(1);
Expand Down
43 changes: 0 additions & 43 deletions src/sscce-sequelize-7.ts

This file was deleted.

Loading