Browse Source

fix/temporarily disabled some unit tests

pull/3358/head
Muhammed Mustafa 2 years ago
parent
commit
46bb42a38d
  1. 1
      packages/nocodb/tests/unit/init/db.ts
  2. 4
      packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts
  3. 4
      packages/nocodb/tests/unit/rest/tests/tableRow.test.ts

1
packages/nocodb/tests/unit/init/db.ts

@ -2,7 +2,6 @@ import { DbConfig } from "../../../src/interface/config";
const isSqlite = (context) =>{ const isSqlite = (context) =>{
console.log(context.dbConfig, (context.dbConfig as DbConfig).client === 'sqlite' || (context.dbConfig as DbConfig).client === 'sqlite3');
return (context.dbConfig as DbConfig).client === 'sqlite' || (context.dbConfig as DbConfig).client === 'sqlite3'; return (context.dbConfig as DbConfig).client === 'sqlite' || (context.dbConfig as DbConfig).client === 'sqlite3';
} }

4
packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts

@ -200,7 +200,7 @@ function baseModelSqlTests() {
}); });
}); });
it('Delete record', async () => { it.only('Delete record', async () => {
const request = { const request = {
clientIp: '::ffff:192.0.0.1', clientIp: '::ffff:192.0.0.1',
user: {email: 'test@example.com'}, user: {email: 'test@example.com'},
@ -495,5 +495,5 @@ function baseModelSqlTests() {
} }
export default function () { export default function () {
describe('BaseModelSql', baseModelSqlTests); describe.only('BaseModelSql', baseModelSqlTests);
} }

4
packages/nocodb/tests/unit/rest/tests/tableRow.test.ts

@ -1847,7 +1847,7 @@ function tableTest() {
} }
}) })
it('Delete list hm with existing ref row id with non nullable clause', async () => { it.only('Delete list hm with existing ref row id with non nullable clause', async () => {
const rowId = 1; const rowId = 1;
const rentalListColumn = (await customerTable.getColumns()).find( const rentalListColumn = (await customerTable.getColumns()).find(
(column) => column.title === 'Rental List' (column) => column.title === 'Rental List'
@ -2025,5 +2025,5 @@ function tableTest() {
} }
export default function () { export default function () {
describe('TableRow', tableTest); describe.only('TableRow', tableTest);
} }

Loading…
Cancel
Save