Skip to content

Commit

Permalink
chore(rollup-plugin-vue-i18n,unplugin-vue-i18n): switch to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 29, 2023
1 parent ee7e257 commit e122e3a
Show file tree
Hide file tree
Showing 9 changed files with 235 additions and 211 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@
"test:e2e:unplugin": "yarn workspace @intlify/unplugin-vue-i18n test:e2e",
"test:unit": "run-s \"test:unit:*\"",
"test:unit:utils": "yarn run build:utils && vitest run packages/bundle-utils",
"test:unit:rollup": "NODE_ENV=test jest --env node packages/rollup-plugin-vue-i18n",
"test:unit:unplugin": "NODE_ENV=test jest --env node packages/unplugin-vue-i18n",
"test:watch": "jest --env node --watch packages/bundle-utils/test/**",
"test:unit:rollup": "vitest run packages/rollup-plugin-vue-i18n/test",
"test:unit:unplugin": "vitest run packages/unplugin-vue-i18n/test",
"changelog": "jiti ./scripts/changelog.ts",
"changelog:utils": "yarn workspace @intlify/bundle-utils changelog",
"changelog:rollup": "yarn workspace @intlify/rollup-plugin-vue-i18n changelog",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`global 1`] = `
Array [
Object {
[
{
"locale": "ja",
"resource": Object {
"resource": {
"hello": [Function],
},
},
]
`;

exports[`global 2`] = `
Array [
Object {
[
{
"locale": "",
"resource": Object {
"en": Object {
"resource": {
"en": {
"hello": [Function],
},
},
Expand All @@ -25,11 +25,11 @@ Array [
`;

exports[`import 1`] = `
Array [
Object {
[
{
"locale": "",
"resource": Object {
"en": Object {
"resource": {
"en": {
"hello": [Function],
},
},
Expand All @@ -38,11 +38,11 @@ Array [
`;

exports[`json5 1`] = `
Array [
Object {
[
{
"locale": "",
"resource": Object {
"en": Object {
"resource": {
"en": {
"hello": [Function],
},
},
Expand All @@ -51,60 +51,60 @@ Array [
`;

exports[`locale attr 1`] = `
Array [
Object {
[
{
"locale": "ja",
"resource": Object {
"resource": {
"hello": [Function],
},
},
]
`;

exports[`locale attr and basic 1`] = `
Array [
Object {
[
{
"locale": "",
"resource": Object {
"en": Object {
"resource": {
"en": {
"hello": [Function],
},
},
},
Object {
{
"locale": "ja",
"resource": Object {
"resource": {
"hello": [Function],
},
},
]
`;

exports[`locale attr and import 1`] = `
Array [
Object {
[
{
"locale": "en",
"resource": Object {
"resource": {
"hello": [Function],
},
},
]
`;

exports[`multiple 1`] = `
Array [
Object {
[
{
"locale": "",
"resource": Object {
"en": Object {
"resource": {
"en": {
"hello": [Function],
},
},
},
Object {
{
"locale": "",
"resource": Object {
"ja": Object {
"resource": {
"ja": {
"hello": [Function],
},
},
Expand All @@ -113,11 +113,11 @@ Array [
`;

exports[`special characters 1`] = `
Array [
Object {
[
{
"locale": "",
"resource": Object {
"en": Object {
"resource": {
"en": {
"hello": [Function],
},
},
Expand All @@ -126,16 +126,16 @@ Array [
`;

exports[`yaml 1`] = `
Array [
Object {
[
{
"locale": "en",
"resource": Object {
"resource": {
"hello": [Function],
},
},
Object {
{
"locale": "ja",
"resource": Object {
"resource": {
"hello": [Function],
},
},
Expand Down
Loading

0 comments on commit e122e3a

Please sign in to comment.