Files
jackwener__opencli/vitest.config.ts
Piotr Yordanov 8869d3b457 feat(linkedin): add timeline feed command (#342)
* feat(linkedin): add timeline feed command

* test(linkedin): add timeline adapter unit tests

Add shape tests and utility function tests for the new timeline command.
Include linkedin in the vitest adapter project config.

---------

Co-authored-by: jackwener <jakevingoo@gmail.com>
2026-03-24 15:54:51 +08:00

45 lines
1010 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
include: ['src/**/*.test.ts'],
exclude: ['src/clis/**/*.test.ts'],
// Run unit tests before e2e tests to avoid project-level contention in CI.
sequence: {
groupOrder: 0,
},
},
},
{
test: {
name: 'adapter',
include: [
'src/clis/zhihu/**/*.test.ts',
'src/clis/twitter/**/*.test.ts',
'src/clis/reddit/**/*.test.ts',
'src/clis/bilibili/**/*.test.ts',
'src/clis/linkedin/**/*.test.ts',
],
sequence: {
groupOrder: 1,
},
},
},
{
test: {
name: 'e2e',
include: ['tests/**/*.test.ts'],
maxWorkers: 2,
sequence: {
groupOrder: 2,
},
},
},
],
},
});