Comments (5)
We're running these tests using GitHub Actions quite frequently and those work using yarn test
without failures. So it might be on your end. Does this happen for other dialects as well? See this file for the other dialects used in CI and the required env variables for them; https://github.com/sequelize/cli/blob/main/.github/workflows/ci.yml
from cli.
I just checked them, none of them worked for me.
As of now i checked these platforms:
ArchlinuxUbuntu 22( i regret touching this at all )node:10
docker
None of them are running tests at all. I am running tests with this:
$ export DIALECT=sqlite
$ yarn test
Other dialects didn't work too. I followed the scenario step-by-step in a clean chroot so i just dont imagine how is this working in the CI but not on my machine.
from cli.
I'm using a clean GitHub Codespaces and ran yarn install && yarn test
and then it works fine for sqlite tests. It is using Node 20.4.0 but using Node 18.16.1 also works for me.
Does sequelize itself give a table name back when debugging?
Lines 196 to 203 in 6bfc4dd
from cli.
I am unsure what exactly are you asking, but running it with DEBUG=*
may show better picture of what happened:
mocha:runner run(): starting +22ms
mocha:runner run(): emitting start +0ms
mocha:runner run(): emitted start +0ms
mocha:runner runSuite(): running +1ms
mocha:runner _addEventListener(): adding for event error; 0 current listeners +0ms
mocha:runner runSuite(): running [SQLITE] lib/sequelize db:create +1ms
mocha:runner runSuite(): bailing +0ms
mocha:runner runSuite(): running [SQLITE] lib/sequelize db:drop +0ms
mocha:runner runSuite(): bailing +0ms
mocha:runner runSuite(): running [SQLITE] lib/sequelize db:migrate (JSON) +0ms
[SQLITE] lib/sequelize db:migrate (JSON)
mocha:runner _addEventListener(): adding for event error; 0 current listeners +1ms
sequelize:connection:sqlite connection acquired default +0ms
sequelize:sql:sqlite Executing (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +0ms
sequelize:sql:sqlite Executed (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +0ms
sequelize:sql:sqlite Executing (default): PRAGMA foreign_keys = OFF +4ms
sequelize:sql:sqlite Executed (default): PRAGMA foreign_keys = OFF +0ms
sequelize:sql:sqlite Executing (default): PRAGMA foreign_keys = ON +1ms
sequelize:sql:sqlite Executed (default): PRAGMA foreign_keys = ON +0ms
sequelize:pool pool created with max/min: 5/0, no replication +267ms
mocha:runner _addEventListener(): adding for event error; 0 current listeners +8ms
sequelize:connection:sqlite connection acquired default +489ms
sequelize:sql:sqlite Executing (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +484ms
sequelize:sql:sqlite Executed (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +0ms
mocha:runner trapped unhandled rejection from (probably) user code; re-emitting on process +484ms
mocha:runner _addEventListener(): adding for event unhandledRejection; 0 current listeners +0ms
mocha:runner total number of failures: 1 +30s
from cli.
The tests for the main branch seem to run smoothly, i think that my code somehow affected the tests behaviour. Thanks for the help, though
from cli.
Related Issues (20)
- const model = require(path.join(__dirname, file)).default( ^ TypeError: require(...).default is not a function
- const model = require(path.join(__dirname, file)).default( ^ TypeError: require(...).default is not a function HOT 1
- Sequelize CLI Fails to Authenticate with Postgres DB Containing a ':' in Password HOT 4
- CLI is not taking default env like node latest versions have (20.8.0)
- SequelizeMeta structure incompatible with SingleStore/memsql HOT 2
- Problem running migrations with yarn
- When on typescript project, sequelize-cli still generates javascript files. HOT 3
- Running migrations, on Azure database HOT 1
- Seeders state in database with using url option
- Migration undo command didn't work correctly. HOT 1
- where condition in literal HOT 1
- nested dependency es5-ext has a security vulnerability (low) and needs update HOT 1
- Subsequent migrations fail after running db:migrate:schema:timestamps:add command
- Please install sqlite3 package manually
- Incompatibility Error with [email protected] and Node.js 21.7.3 HOT 2
- Error: Dialect needs to be explicitly supplied as of v4.0.0 HOT 2
- npx sequelize-cli db:migrate command don't read the environment variables with PM2 HOT 3
- ERROR: Error reading "config\config.js". Error: undefined. Migracion con sequelize-cli HOT 6
- Dialect options being ignored for mssql named instance
- React Native CLI - Error "configureCMakeDebug[arm64-v8a]" [CXX1410]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.