build: use identitydb 0.2.0 from npm
This commit is contained in:
@@ -3,7 +3,7 @@ import { join } from 'node:path';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('release config', () => {
|
||||
it('depends on a remote IdentityDB package source instead of a local file path', () => {
|
||||
it('depends on the published identitydb 0.2.0 npm package', () => {
|
||||
const packageJson = JSON.parse(
|
||||
readFileSync(join(process.cwd(), 'package.json'), 'utf8'),
|
||||
) as {
|
||||
@@ -11,11 +11,9 @@ describe('release config', () => {
|
||||
trustedDependencies?: string[];
|
||||
};
|
||||
|
||||
expect(packageJson.dependencies?.identitydb).toMatch(
|
||||
/^git\+https:\/\/git\.psw\.kr\/p-sw\/IdentityDB\.git#[0-9a-f]{40}$/,
|
||||
);
|
||||
expect(packageJson.dependencies?.identitydb).toBe('0.2.0');
|
||||
expect(packageJson.trustedDependencies).toEqual(
|
||||
expect.arrayContaining(['better-sqlite3', 'esbuild', 'identitydb']),
|
||||
expect.arrayContaining(['better-sqlite3', 'esbuild']),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user