mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-28 08:49:38 +02:00
test(cli): update slow test command expectations
This commit is contained in:
parent
4a19ba5ce4
commit
e526bc2ce0
3 changed files with 5 additions and 5 deletions
|
|
@ -230,7 +230,7 @@ describe('runKtxConnectionMetabaseSetup', () => {
|
||||||
|
|
||||||
expect(io.stdout()).toContain('Connection: metabase');
|
expect(io.stdout()).toContain('Connection: metabase');
|
||||||
expect(io.stdout()).toContain('Discovered 1 database');
|
expect(io.stdout()).toContain('Discovered 1 database');
|
||||||
expect(io.stdout()).toContain(`ktx ingest metabase --project-dir ${projectDir}`);
|
expect(io.stdout()).toContain(`ktx ingest run --connection-id metabase --adapter metabase --project-dir ${projectDir}`);
|
||||||
expect(io.stdout()).not.toContain('mb_example');
|
expect(io.stdout()).not.toContain('mb_example');
|
||||||
expect(io.stderr()).not.toContain('mb_example');
|
expect(io.stderr()).not.toContain('mb_example');
|
||||||
|
|
||||||
|
|
@ -784,7 +784,7 @@ describe('runKtxConnectionMetabaseSetup', () => {
|
||||||
|
|
||||||
const config = await readFile(join(projectDir, 'ktx.yaml'), 'utf-8');
|
const config = await readFile(join(projectDir, 'ktx.yaml'), 'utf-8');
|
||||||
expect(config).toContain('driver: metabase');
|
expect(config).toContain('driver: metabase');
|
||||||
expect(io.stderr()).toContain(`ktx ingest metabase --project-dir ${projectDir}`);
|
expect(io.stderr()).toContain(`ktx ingest run --connection-id metabase --adapter metabase --project-dir ${projectDir}`);
|
||||||
|
|
||||||
const updatedProject = await loadKtxProject({ projectDir });
|
const updatedProject = await loadKtxProject({ projectDir });
|
||||||
const store = new LocalMetabaseSourceStateReader({ dbPath: ktxLocalStateDbPath(updatedProject) });
|
const store = new LocalMetabaseSourceStateReader({ dbPath: ktxLocalStateDbPath(updatedProject) });
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ describe('runKtxConnection', () => {
|
||||||
expect(io.stdout()).toContain('Mappings:');
|
expect(io.stdout()).toContain('Mappings:');
|
||||||
expect(io.stdout()).toContain('1 -> [unmapped]');
|
expect(io.stdout()).toContain('1 -> [unmapped]');
|
||||||
expect(io.stdout()).toContain('Next:');
|
expect(io.stdout()).toContain('Next:');
|
||||||
expect(io.stdout()).toContain('ktx ingest run --connection-id prod-metabase --adapter metabase');
|
expect(io.stdout()).toContain('ktx ingest run --connection-id prod-metabase --adapter <adapter>');
|
||||||
expect(io.stdout()).toContain('ktx connection mapping');
|
expect(io.stdout()).toContain('ktx connection mapping');
|
||||||
expect(io.stderr()).toBe('');
|
expect(io.stderr()).toBe('');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -584,13 +584,13 @@ describe('setup status', () => {
|
||||||
|
|
||||||
expect(projectPrompts.select).toHaveBeenCalledWith(
|
expect(projectPrompts.select).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
message: 'Which KTX project should setup use?',
|
message: 'Where should KTX create the project?',
|
||||||
options: expect.arrayContaining([expect.objectContaining({ value: 'back', label: 'Back' })]),
|
options: expect.arrayContaining([expect.objectContaining({ value: 'back', label: 'Back' })]),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
expect(projectPrompts.select).toHaveBeenCalledWith(
|
expect(projectPrompts.select).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
message: 'Which KTX project should setup use?',
|
message: 'Where should KTX create the project?',
|
||||||
options: expect.not.arrayContaining([expect.objectContaining({ value: 'exit', label: 'Exit' })]),
|
options: expect.not.arrayContaining([expect.objectContaining({ value: 'exit', label: 'Exit' })]),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue