File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 1+ import fs from 'fs' ;
2+ import path from 'path' ;
3+
4+ describe ( 'Version Check' , ( ) => {
5+ it ( 'checks @lit-protocol/uint8arrays version is 8.0.0' , ( ) => {
6+ const distPkgPath = path . join ( __dirname , '../../dist/packages/uint8arrays/package.json' ) ;
7+ const distPkg = JSON . parse ( fs . readFileSync ( distPkgPath , 'utf8' ) ) ;
8+ expect ( distPkg . version ) . toBe ( '8.0.0' ) ;
9+ } ) ;
10+
11+ it ( 'verifies other packages maintain their versions' , ( ) => {
12+ const uint8arraysPath = path . join ( __dirname , '../../dist/packages/uint8arrays/package.json' ) ;
13+ const uint8arraysPkg = JSON . parse ( fs . readFileSync ( uint8arraysPath , 'utf8' ) ) ;
14+
15+ // Check that dependencies maintain their original versions
16+ expect ( uint8arraysPkg . dependencies [ '@lit-protocol/constants' ] ) . toBe ( '7.0.4' ) ;
17+ expect ( uint8arraysPkg . dependencies [ '@lit-protocol/types' ] ) . toBe ( '7.0.4' ) ;
18+ } ) ;
19+ } ) ;
Original file line number Diff line number Diff line change 2121 "tags" : [
2222 " universal"
2323 ],
24- "version" : " 7.0.4" ,
25- "main" : " ./dist/src/index.js" ,
26- "typings" : " ./dist/src/index.d.ts"
27- }
24+ "version" : " 8.0.0"
25+ }
You can’t perform that action at this time.
0 commit comments