Skip to content

Commit

Permalink
babel-plugin-relay: Remove @Assignable fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-tengler committed Jul 18, 2023
1 parent b07e96d commit c57c0d5
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 248 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`matches expected output: assignable.txt 1`] = `
~~~~~~~~~~ INPUT ~~~~~~~~~~
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const {graphql} = require('relay-runtime');
graphql\`
fragment AssignableFragment on Page @assignable {
__typename
}
\`;
~~~~~~~~~~ OUTPUT ~~~~~~~~~~
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const {graphql} = require('relay-runtime');
`;

exports[`matches expected output: fragment.txt 1`] = `
~~~~~~~~~~ INPUT ~~~~~~~~~~
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`matches expected output: assignable.txt 1`] = `
~~~~~~~~~~ INPUT ~~~~~~~~~~
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const {graphql} = require('relay-runtime');
graphql\`
fragment AssignableFragment on Page @assignable {
__typename
}
\`;
~~~~~~~~~~ OUTPUT ~~~~~~~~~~
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const {graphql} = require('relay-runtime');
`;

exports[`matches expected output: fragment.txt 1`] = `
~~~~~~~~~~ INPUT ~~~~~~~~~~
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`matches expected output: assignable.txt 1`] = `
~~~~~~~~~~ INPUT ~~~~~~~~~~
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const {graphql} = require('relay-runtime');
graphql\`
fragment AssignableFragment on Page @assignable {
__typename
}
\`;
~~~~~~~~~~ OUTPUT ~~~~~~~~~~
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const {graphql} = require('relay-runtime');
`;

exports[`matches expected output: fragment.txt 1`] = `
~~~~~~~~~~ INPUT ~~~~~~~~~~
/**
Expand Down
16 changes: 16 additions & 0 deletions packages/babel-plugin-relay/__tests__/fixtures/assignable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const {graphql} = require('relay-runtime');

graphql`
fragment AssignableFragment on Page @assignable {
__typename
}
`;
Loading

0 comments on commit c57c0d5

Please sign in to comment.